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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Erik_Hille
Regular Visitor

Summarization of values in Matrix Visual

Hi all,

 

I have build a dashboard that includes a matrix in which I display monthly stocks (total at the end of each month). My rows is a Year Hierarchie which includes he Year and Year & Month. When I collapse a year, the values for the monthly stocks are summarized. As this summarization is obviously incorrect, I tried to either display on the stocks of the latest month (December for 2022, September for 2023) or alternatively dont display anything at all.
Any of you have an idea? Attached you'll find two screenshots with my matrix and the visual settings.

Best

Erik

Historic Stocks Matrix Status quo - settings.pngHistoric Stocks Matrix Status quo.png

2 ACCEPTED SOLUTIONS
Ritaf1983
Super User
Super User

Hi @Erik_Hille 
Please refer to the linked guides for dealing with problems with matrixes totals :
https://www.youtube.com/watch?v=dgwsk2fjWLc

https://www.youtube.com/watch?v=eoT-jPzV3Wk

https://blog.finance-bi.com/power-bi-totals-incorrect/

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

Anonymous
Not applicable

Hi @Erik_Hille 

You can use ISINSCOPE() function.

e.g You can create a measure

Measure=IF(ISINSCOPE(Table[Year&Month]),[MoM]) 

The result will like this

vxinruzhumsft_0-1697528385019.png

You can refer to the following link about the function

ISINSCOPE function (DAX) - DAX | Microsoft Learn

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Erik_Hille 

You can use ISINSCOPE() function.

e.g You can create a measure

Measure=IF(ISINSCOPE(Table[Year&Month]),[MoM]) 

The result will like this

vxinruzhumsft_0-1697528385019.png

You can refer to the following link about the function

ISINSCOPE function (DAX) - DAX | Microsoft Learn

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Ritaf1983
Super User
Super User

Hi @Erik_Hille 
Please refer to the linked guides for dealing with problems with matrixes totals :
https://www.youtube.com/watch?v=dgwsk2fjWLc

https://www.youtube.com/watch?v=eoT-jPzV3Wk

https://blog.finance-bi.com/power-bi-totals-incorrect/

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Hi @Ritaf1983 

thanks for the input. Unfortunately, that didn't solve my issue. 
The first column in the matrix visual is a table column, the second and third column in my matrix are measures. the videos unfortunately didn't help me here. My goal would be to get rid of the bold values for 2023 and just display the first column, but instead of a summarization only the value for the latest month, September 2023 in this case.

Hi @Erik_Hille 

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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