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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
axy5093
Helper II
Helper II

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
Employee
Employee

Hi @axy5093,

 

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.

@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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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