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
Maz_0102
Helper I
Helper I

How to do SUM on Distinct Count

 

Hi

 

I am using the matrix visualization below

for ROWS i am using a list of names from a table

and Colmns, im using a list of months from another table

 

then my value field is from the source tabkle called 'TBT' and doing distinct count on column called 'Name'

 

how do i get the column subtotals to reflect what's going across

 

eg first entry  has 1 against may and June so should total 2 

 

 

Maz_0102_1-1656337878888.png

 

 

2 REPLIES 2
amitchandak
Super User
Super User

@Maz_0102 , Try a measure like

Sumx(Values(TBT[Reporting Person]), calculate(Distinctcount(Table[Name]) ) )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak 

 

hello Amit, 

 

the formual didnt work...

 

The reporting person is from another table called members 

the table has a relationship with the source data, because I am linking the names

Maz_0102_0-1656343595161.png

 

appreciate your help as well, thank you

 

 

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.