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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
ansa_naz
Continued Contributor
Continued Contributor

Trying to show blanks as zero, but this is ignoring all other filters??

I have the following measure created based on some posts on here:

 

Job Count = 
var cntrows = countrows(ANSAPBICalls)
return IF(ISBLANK(cntrows),0,(cntrows))

However, when I use this measure in a visual, the visual ignores filters applied to the report page and returns far more than it should, but all with values of zero. Is there any way to get the page filters/slicers to be applied to the measure somehow?

 

Cheers

4 REPLIES 4
v-chuncz-msft
Community Support
Community Support

@ansa_naz,

 

You may try using Visual level filters.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Super User
Super User

They should apply but not really enough here to understand what is going wrong. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Thanks for your reply @Greg_Deckler. I have created a sample PBI report, which is available at below link, to display this issue:

 

https://1drv.ms/f/s!AuiIgc_S9J5JhbNcGD4pMNHen7rDmw

 

As you can see, if you go to the Reactive Summary page for example:

 

PBIDesktop_AlICVwXfio.png

 

All the sites to the right of (Blank) are not sites that should be display on this visual, as the filters being applied should have filtered them out. But they are being displayed anyway. Its something to do with how I have written this measure, but unsure how to correct it so it forces filters to be applied, but also to show zero for any items which filter as blank

 

Cheers

ansa_naz
Continued Contributor
Continued Contributor

Hopefully someone can help with this?

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.