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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Measure ignoring slicer

I have a measure that counts number of projects missing value in a column. When no filters are applied in slicers all is well, but when I apply a slicer filter the count doesn't work. I've checked the interactions and they are not disabled.

 

The measue looks like this

 

 

 

Antal projekt saknar RE =
CALCULATE ( DISTINCTCOUNT ( ProjektLime[LimeID] ), ProjektLime[RE] = "" )

 

 

 

 

This gives me the same result

 

 

 

Antal projekt saknar RE =
CALCULATE ( DISTINCTCOUNT ( ProjektLime[LimeID] ), ISBLANK(ProjektLime[RE]) )

 

 

 

Applying this slicer setting RE to 1020 should give me the result 0 (or (Blank) ) in the corresponding card, but it says 234...
saknar re.png

 

I really don't understand why, can anyone help me out, please?

 

 
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Try like

Antal projekt saknar RE =
CALCULATE ( DISTINCTCOUNT ( ProjektLime[LimeID] ), filter(ProjektLime, ISBLANK(ProjektLime[RE]) ))

 

CALCULATE with and without FILTER- https://youtu.be/KDcmzwgPvXQ

http://dataap.org/blog/2019/04/22/difference-between-calculate-with-and-without-filter-expression/

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

@Anonymous , Try like

Antal projekt saknar RE =
CALCULATE ( DISTINCTCOUNT ( ProjektLime[LimeID] ), filter(ProjektLime, ISBLANK(ProjektLime[RE]) ))

 

CALCULATE with and without FILTER- https://youtu.be/KDcmzwgPvXQ

http://dataap.org/blog/2019/04/22/difference-between-calculate-with-and-without-filter-expression/

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
Anonymous
Not applicable

Thank you for your prompt reply, that worked very well! I'll have a look at the video to understand why I need to do it that way, thanks again!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.