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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Row total in a matrix

Hi,

 

I have a matrix with values of distinct count of ID's but in my total i want count of it, i.e  

Sample.PNG

The total value is giving me count of distinct is my guess, but i need the actual sum of all the columns and not distinct. 

Also the columns in the matrix are days in a months from date. 

 

Any help is appreciated. Thank you 

 

 

 

4 REPLIES 4
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

The total row calculates based on the detailed rows above. So, if you show distinct count in detailed rows, the total row will sum up the dixtinct count values by default.

 

Regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

@v-yulgu-msft Thanks, that sounds about right, i failed at my attempt of a work around and landed up hiding the row total as it was only a nice to have. 

 

Thank you all!

Ashish_Mathur
Super User
Super User

Hi,

 

Share the link from where i can download your file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
TomMartens
Super User
Super User

Hey,

 

maybe a Measure like this will do the trick

CALCULATE(
SUMX(
ALLSELECTED('yourtable'[thecolumnthatisonrows])
,DISTINCTCOUNT('thetable'[thecolumnyoucountdistinct])
)
)

If this will not work, than it will be helpful to create a pbix with sample data, upload the file to onedrive or dropbox and share the link.

 

Regards

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors
Top Kudoed Authors