Forum

Calculate Named ran...
 
Notifications
Clear all

Calculate Named ranges as strings from source table

4 Posts
3 Users
0 Reactions
86 Views
(@jaryszek)
Posts: 177
Reputable Member
Topic starter
 

Hi,

i have table where i have Named ranges names : NR_1, NR_2, NR_3 (as strings):

Screenshot_137.png

and now i want to calculate each table field to get results like here:

Screenshot_138.png

How can i achive?
Best,
Jacek

 
Posted : 18/03/2021 8:03 am
(@jstewart)
Posts: 216
Estimable Member
 

I'm confused as to what you are wanting, from your attached file it looks like you just want to return the string of the named ranges in which case you need only reference the named range. I feel like I'm missing something, though?

 
Posted : 18/03/2021 4:28 pm
(@debaser)
Posts: 837
Member Moderator
 

You could write a separate function for it, or just add a custom column - for example:

let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Col1", type text}}),
#"Added Custom" = Table.AddColumn(#"Changed Type", "Custom", each Excel.CurrentWorkbook(){[Name=[Col1]]}[Content]{0}),
#"Expanded Custom" = Table.ExpandRecordColumn(#"Added Custom", "Custom", {"Column1"}, {"Column1"})
in
#"Expanded Custom"

 
Posted : 18/03/2021 6:06 pm
(@jaryszek)
Posts: 177
Reputable Member
Topic starter
 

thank you working!

Jacek

 
Posted : 19/03/2021 6:49 am
Share: