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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
DW868990
Helper IV
Helper IV

Show "Blank" filter which is being applied in a card

Hi,

Looking for some advice. I have a report that has multiple filters applied to it via the filter panel, i also have a card visual which contains a measure that shows all the filters applied to that page, whether it be 1 or multiple from different columns. 

However the problem i have is when blank is included in the selection, the card visual showing the filters does to show that blank is being selected. So in the below screenshot (Blank) and No are selected, yet the card visual only shows that No is. I need the output to be (Blank), No.

DW868990_0-1712067247603.pngDW868990_1-1712067272354.png

Thanks in advance.

 

JJ

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @DW868990 ,

 

You can use the following DAX:

measure =
var _select=SELECTCOLUMNS('Table',"1",'Table'[Group])
return
IF(
    MAX('Table'[Group]) in _select &&
ISFILTERED('Table'[Group])&&SELECTEDVALUE('Table'[Group])=BLANK(),"Blank"&","&MAX('Table'[Group]),BLANK())

vyangliumsft_0-1712136285410.png

 

Best Regards,

Liu Yang

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-yangliu-msft
Community Support
Community Support

Hi  @DW868990 ,

 

You can use the following DAX:

measure =
var _select=SELECTCOLUMNS('Table',"1",'Table'[Group])
return
IF(
    MAX('Table'[Group]) in _select &&
ISFILTERED('Table'[Group])&&SELECTEDVALUE('Table'[Group])=BLANK(),"Blank"&","&MAX('Table'[Group]),BLANK())

vyangliumsft_0-1712136285410.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-yangliu-msft
Community Support
Community Support

Hi  @DW868990 ,

 

Here are the steps you can follow:

1. Create measure.

measure =
var _select=SELECTCOLUMNS('Table',"1",'Table'[Group])
return
IF(
    "No" in _select &&
ISFILTERED('Table'[Group])&&SELECTEDVALUE('Table'[Group])=BLANK(),BLANK(),0)

2. Result:

vyangliumsft_0-1712124135929.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Thanks @v-yangliu-msft , its nearly there. 

That works fine for when only blank is selected but if No, and Blank are both selected I need the card visual to show - Blank, No.

Thanks in advance.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.