cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ChrsH
Regular Visitor

Group subsequently added columns dynamically

Hello,

 

is it possible to group subsequently added columns dynamically?

 

Thanks in advance.

C.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Let's try this:

 

Go to the Query Editor, select the "static" column(s) (that should be always there no matter what), right click, Unpivot Other Columns.

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Please be more specific.

Is it possible to define a groupby routine for all columns, so if one add an column in the data source subsequently, the query still works? I need the same aggregation for every column.

 

My data source is a SharePoint List,

Capture.JPG

Anonymous
Not applicable

Hi again.

 

Just trying to figure out what you need, why do you need the sum on another column? Why don't you calculate what you need on the report view?

 

Thanks for yout time an effort I'm a total beginner.

Is it in the report view possible to define the groupby action without specifing every single column? I  just want to group all columns in a table by one.

 

Maybe this pseudo code makes it easier to understand what I want to do. 

Table = GROUPBY(
Table,
Table[GroupByThisColumn],
Dynamic Name for new Columns(maybe column count +1 or sth),
SUMX(
CURRENTGROUP(),
* (wildcard for all columns in the table)
)
)

 

 

Anonymous
Not applicable

Let's try this:

 

Go to the Query Editor, select the "static" column(s) (that should be always there no matter what), right click, Unpivot Other Columns.

I got it, thanks Svalen. 

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors