cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Amir851
Helper I
Helper I

Dynamic Text as Title

HI All,

 

I have three slicer in my report and I have made them independent of each other so It wont filter out the other slicer based on the value from first Filters.

 

How Can I create a Dynamic Title that wil display the title only if all the three filters has been selected and also those filters should has value in the table(since they are made independent of each other, so there will be possibilties that few values in filter 3 may not be present for a value selected in filter 1.  In this case my report will be blank and in this moment I want to display title as " please select the value "

 

below is my DAX I Created

 

Title = IF(
AND(ISFILTERED(Table(slicer1)),ISFILTERED(Table(slicer2)),
"Value of " & SELECTEDVALUE(Table(slicer1)) & " for the Year " & SELECTEDVALUE(Table(Slicer2))," Please Select Required Values From All the Filters")
1 ACCEPTED SOLUTION
v-cherch-msft
Microsoft
Microsoft

Hi @Amir851

 

You may add a condition with HASONEVALUE Function.Attached the sample file for reference.

Measure = 
IF (
    ISFILTERED ( 'Table'[Slicer1] ) && ISFILTERED ( 'Table'[Slicer2] )
        && HASONEVALUE ( 'Table'[value] ),
    "Value of " & SELECTEDVALUE ( 'Table'[Slicer1] )
        & " for the Year "
        & SELECTEDVALUE ( 'Table'[Slicer2] ),
    " Please Select Required Values From All the Filters"
)

Regards,

Cherie

Community Support Team _ Cherie Chen
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

2 REPLIES 2
v-cherch-msft
Microsoft
Microsoft

Hi @Amir851

 

You may add a condition with HASONEVALUE Function.Attached the sample file for reference.

Measure = 
IF (
    ISFILTERED ( 'Table'[Slicer1] ) && ISFILTERED ( 'Table'[Slicer2] )
        && HASONEVALUE ( 'Table'[value] ),
    "Value of " & SELECTEDVALUE ( 'Table'[Slicer1] )
        & " for the Year "
        & SELECTEDVALUE ( 'Table'[Slicer2] ),
    " Please Select Required Values From All the Filters"
)

Regards,

Cherie

Community Support Team _ Cherie Chen
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

Greg_Deckler
Super User IV
Super User IV

You could use ISFILTERED I believe or logic to see if the slicer is in the context of ALL. See my quick measure for ideas:

 

https://community.powerbi.com/t5/Quick-Measures-Gallery/The-Most-Amazing-Mind-Blowing-Dynamic-Slicer...

 


---------------------------------------

@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Top Solution Authors
Top Kudoed Authors