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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
duybachhpvn
Frequent Visitor

Using SUMMARIZECOLUMNS as virtual table with dynamic filter context

Hi,

 

I have below measure that use SUMMARIZE to create a virtual table that has filter context dynamically change based on the visual context (for example, different quarters on a line charts). The measure works beautifully when I want to show the result by quarters

duybachhpvn_0-1604592626439.png

However, I want to be able to add up the result of the Delta $ amount from each quarter in the virtual table, but the above code will only give me the weighted average of all quarters. Thus I create below code with SUMMARIZECOLUMNS that allow me to bring in columns from different tables, hoping that the external filter context of the quarters (PeriodName) can dynamically filter the virtual table

duybachhpvn_1-1604592800784.png

But it seem that the measure do not work at all and return below error. How can I fix this?

 

duybachhpvn_2-1604592847696.png

 

4 REPLIES 4
amitchandak
Super User
Super User

@duybachhpvn ,

Any solution worked out for you?

Do the above replies help? if you need more help make me @

Appreciate your Kudos.

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Hi Amitchandak,

Unfortunately I cannot combine Summarize and SUMMARIZECOLUMNS. It seem that SUMMARIZECOLUMNS does not support dynamic filter context like SUMMARIZE does?

You need to replace SUMMARIZECOLUMNS with SUMMARIZE, not use them together.  The error you are seeing is common with SUMMARIZECOLUMNS.  With SUMMARIZE, you will need to add the name of the table you are summarizing to your measure.

 

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


amitchandak
Super User
Super User

@duybachhpvn , Can use summarize on top of summarizecolumns and try

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.