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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Ibrahim_ABDUL
Frequent Visitor

count unique value based on filtred measure

Hi Everyone,

 

I have un problem with a count measure.  I want to count a unique number of clients who have  a calculated measure R/O>=100%.

 

I apply this formules:  

test = COUNTX(DISTINCT('CAL Customer'[Customer_CIP]),[R/O UL]>=100)
 
but its return me an error message.

Ibrahim_ABDUL_0-1689153171453.png

 

Please heeeellpp

Kind regard,

Ibrahim 

 

PS: Sorry if my english is bad, im for France.

 

3 REPLIES 3
Anonymous
Not applicable

Hi @Ibrahim_ABDUL ,

Please try below dax formula:

measure =
VAR tmp =
    CALCULATETABLE (
        VALUES ( 'CAL Customer'[Customer_CIP] ),
        FILTER ( ALL ( 'CAL Customer' ), 'CAL Customer'[R/O UL] >= 1 )
    )
VAR val =
    COUNTROWS ( tmp )
RETURN
    val

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Tanks alot @Anonymous 

 

But its doesn't work 😕. Its because the R/O UL its not a column, its an calculated measure, and i put it in a "formulas" table

Ibrahim_ABDUL_0-1689323576264.png

 

and when i replace it in your formula, it give me that:

 

Ibrahim_ABDUL_1-1689323658867.png

 

Thanks again for your help!

Kind regards,

Ibrahim

Anonymous
Not applicable

Hi @Ibrahim_ABDUL ,

Could you please provide some more specific information? such as your desensitized example data and a screenshot of your desired results?  It is very helpful for me to test.

Thanks for your efforts & time in advance.

 

Best regards,
Community Support Team_Binbin Yu

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

Top Solution Authors