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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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