Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Sammy_home
New Member

group by variable column name

Hi all,

 

I try to achieve a report with a 'group by' which uses flexible column names.

 

The column names are handed over from another table which is filled with a different manual edited name, every time i run the report differently. In my example it is "Testname"

The datatable has a basic headline (in my example it is "Value") and is renamed within the query with the parametername from above.

 

But I got stuck at the point where I want to group my data table with a sum of my renamed column as it requires a flexible name.

Below you can find a screenshot of the query and in the second screenshot I highlighted the field which should actually be filled with the parametername as fieldname.

 

Sammy_home_0-1671644772704.png

Sammy_home_1-1671645030456.png

 

Maybe I'm stupid but currently I can't find a way out to achieve that.

Every help is appreciated. Thanks!

 

Regards,

Sammy

 

1 ACCEPTED SOLUTION
wdx223_Daniel
Community Champion
Community Champion

List.Sum(Table.Column(_,#"para_name"))

View solution in original post

3 REPLIES 3
wdx223_Daniel
Community Champion
Community Champion

List.Sum(Table.Column(_,#"para_name"))

v-yalanwu-msft
Community Support
Community Support

Hi, @Sammy_home ;

I'm a little confused, are you trying to dynamically sum Testname? Is testname from another table? Can you provide a simple file and a display of the results you wish to output?


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@wdx223_Daniel perfect thanks!!!
It is exactly what I've been trying to achieve.

 

The output looks now like following to reply to you question @v-yalanwu-msft 

Sammy_home_0-1671786156251.png

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.