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

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

Reply
Anonymous
Not applicable

Displaying a matrix based on distinct count

Hello community,

 

I have two tables one called SPEND and the other one called CATALOG

 

In the SPEND table i have Total Spend, Supplier Code, Supplier Name, Document Number , Group Mechandise

In the CATALOG table i have Class, Domain, Family, Group Merchandise

 

The relation between the two table is * to 1.

 

I want to display the total sales per domain but when supplier has just one document number.

This result:

malekzouaridk_0-1629279071042.png

When filtering the table based on distinctcount =1 of Document Number it shows no result 

 

When just putting all the value in matrice it shows me the total documents like that 

malekzouaridk_1-1629279223132.png

 

I can't find a solution for this, could you help me please

 

Thanks

 

 

 

 

2 REPLIES 2
Magpie_Rob
Helper I
Helper I

Hi @Anonymous 

 

can you add a calculated column and filter on it? something like below then add a visual filter for the 1

onedoc = IF(DISITNCTCOUNT ( Document Number ) = 1 , 1, 0 ) 

 

Anonymous
Not applicable

thank @Magpie_Rob but it doesn't work because the distinctcount should be applied on the supplier, so I want to know which supplier had only one document then this number should be displayed with total spend per domain

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