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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Count unique values

Hi Guys ,

 

I am new to Power BI and have a challange -

 

I have unique Material Code in a Coloumn in a Table . When I am trying to count its giving me a sum of all instances repeated over a period rather than giving me a count of unique count without considering its repetation .

 

Example

 

Code        C+1     C+2     C+3

400200      0           0         0

 

So when I count the instance output is coming as 3 instances while I need the count to be just 1.

 

Not sure how to Articulate the formulae for the measure 

 

Kind Regards,

 

Rahul

1 ACCEPTED SOLUTION
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous

 

Could you tell me if your problem has been solved? If it is,kindly mark the helpful answer as a solution and welcome to share your own solution. More people will benefit from here. If not, please share more details for us so that we could help further on it.

 

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous

 

Could you tell me if your problem has been solved? If it is,kindly mark the helpful answer as a solution and welcome to share your own solution. More people will benefit from here. If not, please share more details for us so that we could help further on it.

 

Regards,

Cherie

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

HI Cherie,

 

Appologies for the late response was travelling hence could not respond. Your solution worked very well thanks a lot for your help.

 

 

Regards,

 

Rahul

v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous

 

You may try to use DISTINCTCOUNT function as below. If it is not your case,please share your data table.

Measure = DISTINCTCOUNT(Table1[code])

1.png

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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