Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
How to sum columns with dynamic title (based on ranges + text)
So far i am trying to sum up two columns, which name is composed by dynamic range + an extra text at the end:
dynamic range1= commodity
dynamic range2=country1=export country
extra text= "ATL A" and "PAC A"
so far i have tried this (extrated text from ranges):
#"Created column2" = Table.AddColumn(#"Created column1, "column name", each Text.From(Country1)&" "&Text.From(Commodity)&"ATL A" + Text.From(Country1)&" "&Text.From(Commodity)&" E PAC A", type number),
i also tried to name the ranges inside the brackets:
#"Created column2" = Table.AddColumn(#"Created column1, "column name", each [Country1 Commodity ATL A] + [Country1 Commodity PAC A], type number),
but does not worked so far. I can't think about anything else. Could somebody help on this? thank you a lot!!!!!!!
Hi @lgo
Can you please provide a snapshot of your data and column names. And an example of the results you expect. Hard to visual all of this just in text.
Regards
Phil
Proud to be a Super User!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 17 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |