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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Need help about group up dynamic data using list

Background : I have a reference list containing set of series named "FuturesSeries" which data in the list dynamically change , as you can see below.

 

Cap_Price_0-1637033990673.png

 

I create this list for supporting dynamic data. When I modify my table I can refer to the list instead the value, which will broken the process when the data are changed.

 

Problem : I tried to group up my table by using a value from the list but its always leading to error and i cant find the way to correct it, here is a original formula if I using the value.

 

Cap_Price_1-1637034337711.png

 

I replace list of series in the formula as i mentioned before ,but its leading to error like this.

 

Cap_Price_2-1637035390475.png

Cap_Price_4-1637035514703.png

 

 

 

Do you have any suggestion for this issue or about combinding group up function with list.

 

thank for your advice.

1 ACCEPTED SOLUTION
KNP
Super User
Super User

Hi @Anonymous,

 

I think you need something like the below code...

 

Table.Group(
  Source,
  GroupColumns,
  List.Transform(FutureSeries, (x) => {x, each List.Sum(Table.Column(_, x)), type number})
)

 

Replace the Source with your previous step and the GroupColumns with your list of columns to group by and it should work as expected.

 

I hope this helps.

Have I solved your problem?
Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;).
chrome-9xf-Zagzel-B

If you found this post helpful, please give Kudos.
It gives me a sense of instant gratification and, if you give me Kudos enough times, magical unicorns will appear on your screen.
If you find my signature vaguely amusing, please give Kudos.
KIfp67uy-Sr
Proud to be a Super User!PBI-Super-User-Rank-30x30-1x

View solution in original post

1 REPLY 1
KNP
Super User
Super User

Hi @Anonymous,

 

I think you need something like the below code...

 

Table.Group(
  Source,
  GroupColumns,
  List.Transform(FutureSeries, (x) => {x, each List.Sum(Table.Column(_, x)), type number})
)

 

Replace the Source with your previous step and the GroupColumns with your list of columns to group by and it should work as expected.

 

I hope this helps.

Have I solved your problem?
Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;).
chrome-9xf-Zagzel-B

If you found this post helpful, please give Kudos.
It gives me a sense of instant gratification and, if you give me Kudos enough times, magical unicorns will appear on your screen.
If you find my signature vaguely amusing, please give Kudos.
KIfp67uy-Sr
Proud to be a Super User!PBI-Super-User-Rank-30x30-1x

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.