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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
PBI_dv
Frequent Visitor

Wrong total Matrix / DistinctCount measure

Hello,

I have a problem, I want to count the numéro of unique value of an Customer, by using ID_Customer :

CALCULATE (DISTINCTCOUNTNOBLANK(ID_Customer)

)

and use an field for dispatch the value on 3 group on column.

The field used for group the value is created on the data model at column level, by using a SWITCH function, for exemple :

SWITCH (TRUE(),

Code_BU = "N", "National",

Code_BU = 9, "Départemental"

ELSE "Others"

)

The total of the column of the Matrix are wrong, it not corresponding.

Please could you help me to correct it ?

Kind regards.

 

1 REPLY 1
tackytechtom
Super User
Super User

Hi @PBI_dv ,

 

I was answering a similar query here:

Solved: Re: Incorrect Totals when using measure in table - Microsoft Power BI Community

 

Does this one help you maybe as well? Let me know! 🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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