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
likhithar
Helper III
Helper III

Totals should not display for few Rows in Matrix Visual

Hello Team,

I have a Matrix visual with Month Name in column and another Dimension in row and showing values against those.
If I don't select any month name the totals for Customers should be blank and if i select any single month even then the Total should be blank.
If I don't select any month name the totals for Customers is blank and even if i do multi select also the totals are blank by using HASONEVALUE DAX.

likhithar_1-1690981136329.png

likhithar_0-1690982378818.png

But If I select one month the total is showing up

likhithar_1-1690982435249.png

The DAX is

Measure =
SWITCH(TRUE(),
SELECTEDVALUE('Dimension'[Dim])="Sales",[TotalSales],
SELECTEDVALUE('Dimension'[Dim])="Customers",IF(HASONEVALUE(DateTable[Month of Year]),DISTINCTCOUNT(Sales[CustomerKey])),
SELECTEDVALUE('Dimension'[Dim])="Orders",DISTINCTCOUNT(Sales[SalesOrderNumber]))
Can anyone help me out on this.
TIA
 
 

 

 

 

1 REPLY 1
Anonymous
Not applicable

Hi @likhithar ,

Can you please share some more detail information about this issue? They should help us clarify your scenario and test to troubleshoot.

How to Get Your Question Answered Quickly  

BTW, SELECTEDVALUE function not able to handle aggregate multiple row contents. For this sncieaor, you can try to add a variable with summarize function to handle on the detail level and use iterator function to apply the second level aggregations

Measure Totals, The Final Word 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors