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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply

Help to count in measure

Hallo 

 

Hope somone can help me.

 

I have af measure, where I try to Count customers with non active product. but the measure also count customers if there have both Active and non Active - How can i only count the customers there only have non active product.

 

Customer without active product =
CALCULATE(
DISTINCTCOUNT(Ordre[customer_id]), FILTER(Linjer, [Aktive produkter] = BLANK())
)

 

andreasalleslev_0-1615892224226.png

 

Best regards Andreas

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@andreasalleslev , Try a measure like

 

Customer without active product =
CALCULATE(
Countx(filter( Values(Ordre[customer_id]), isblank([Aktive produkter])),[customer_id])
)

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

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@andreasalleslev , Try a measure like

 

Customer without active product =
CALCULATE(
Countx(filter( Values(Ordre[customer_id]), isblank([Aktive produkter])),[customer_id])
)

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

Thank you so much:-)

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.