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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
M_SBS_6
Helper V
Helper V

Manipulate the Total

Hi,
I am trying to create a matrix which has a distinct count.

My data I'm using for this example is this:

AppID.   AppStatus.         AppGroup
22.               Existing.             House
22.               Existing.             Flat 22.               Existing.             Flat

 

So, I have 3 records, 1 distict AppID.

My Row = AppID
Column = AppGroup
Value = count distinct AppID

This is what is returned below.

AppType.   House.     Flat.   Total
Rem.               1.            1.         1

Everything is correct based on the logic however, I'd like the Total to show as a 2 instead of a 1.

AppType.   House.     Flat.   Total
Rem.               1.            1.         2

Is there anyway of doing this please, maybe like a grouping perhaps?

1 REPLY 1
Daniel29195
Super User
Super User

@M_SBS_6 

 

use sumx iterator.

iterate over the column in the visual, 

and for the expression, use calculate ( distinctcount( the col you are counting )  ) 

 

let me know if this helps .

 

 

If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.