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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
RJ_KON
Helper I
Helper I

DAX measure using isfiltered function

Hi-Power BI geeks,

 

I am trying to bring text display into the card visual and it should display when two slicers and one clustered bar chart visuals are filtered.

So I tried to use the below Dax measure.

 

Comments = IF(ISFILTERED(PainPoint[Ref_SprintTopics]) || ISFILTERED(PainPoint[Initiative Ref]) || ISFILTERED(PainPoint[Raised By]),FIRSTNONBLANK(PainPoint[Comments],0))
 
So my requirement is
when no slicer and other visual is selected the card visual need to show nothing, but it is showing text (Blank).
Need help?
 
Regards
Raj
1 ACCEPTED SOLUTION

Thanks, Paul, it worked:)

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

I am in a similar boat, I am using the code. Current Sku/Description =
IF (
    ISFILTERED ( TRPT_FS_COPA_ADHOC_DTL_V2[SKU/Material Description] ),
    FIRSTNONBLANK (
        TRPT_FS_COPA_ADHOC_DTL_V2[SKU/Material Description],
        TRPT_FS_COPA_ADHOC_DTL_V2[SKU/Material Description]
    ),
    ""
)

 

This creates a measure that shows on a card only the selected filter. 

Slatesh_0-1643666169638.png

But what I need help with is having the card show multiple filter selections. Instead of just the first non-blank filter selection. 

 

 

Is the value displayed that if the selected value in the filter? If so, so can try something along the lines of:

Filter Values =
IF (
    ISFILTERED ( TRPT_FS_COPA_ADHOC_DTL_V2[SKU/Material Description] ),
    CONCATENATEX (
        VALUES ( TRPT_FS_COPA_ADHOC_DTL_V2[SKU/Material Description] ),
        TRPT_FS_COPA_ADHOC_DTL_V2[SKU/Material Description],
        ", "
    ),
    ""
)




Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






PaulDBrown
Community Champion
Community Champion

Create a measure to use for to format the value conditionally. Something along the lines of:

 

Format Card Value = 
IF(
ISFILTERED(PainPoint[Ref_SprintTopics]) || ISFILTERED(PainPoint[Initiative Ref]) || ISFILTERED(PainPoint[Raised By]), 1, 2)

 

Here is an example using an equivalent measure and formatting the value conditionally:

card.JPGFormat.JPGCard.gif





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Hi Paul, thanks for looking into the query.

But, my measure display just 1 and 2, so when I select a visual it should show a text from one of my tables columns. Below is how it should show.

RJ_KON_0-1633349088762.png

But when I unselect all visuals it is showing as below, and how I don't want.

RJ_KON_1-1633349162238.png

Regards

Raj

The card visual must have the measure you need. The Measure for the conditional format you use in the conditional format for the card visual as shown in the screenshots I posted (you will need to adjust the colours of course)





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Thanks, Paul, it worked:)

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.