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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
adnankabina
Helper II
Helper II

Row Subtotal showing wrong

Kindly see my visual. My row subtotal is wrong. 

one measure I used.

Actual Orders e = DISTINCTCOUNT(mfc_tracking[order_number])  please note ordrer number is string value 
Actual_Units is number value
 
adnankabina_0-1667064759573.png

 

also note that Total Actual orders distinct count 148894 it is not distributing accross frozen, gocery and pershables.

1 ACCEPTED SOLUTION
mangaus1111
Solution Sage
Solution Sage

Hi @adnankabina ,

your subtotal is not wrong!

 

If you use a measure with the function DISTINCTCOUNT the subtotal is never the sum of the single values,

 

For example if you have a simple fact table like this

mangaus1111_0-1667066490834.png

 

the distinctcount is 2 for any single category, but it is 2 even if you consider the whole table (not filtered for category)

 

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

1 REPLY 1
mangaus1111
Solution Sage
Solution Sage

Hi @adnankabina ,

your subtotal is not wrong!

 

If you use a measure with the function DISTINCTCOUNT the subtotal is never the sum of the single values,

 

For example if you have a simple fact table like this

mangaus1111_0-1667066490834.png

 

the distinctcount is 2 for any single category, but it is 2 even if you consider the whole table (not filtered for category)

 

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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