cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Amir851 Regular Visitor
Regular Visitor

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

Accepted Solutions
Microsoft v-cherch-msft
Microsoft

Re: Dynamic Text as Title

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
Super User IV
Super User IV

Re: Dynamic Text as Title

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...

 


I have book! Learn Power BI from Packt


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

Proud to be a Datanaut!

Microsoft v-cherch-msft
Microsoft

Re: Dynamic Text as Title

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

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

January 2020 Community Highlights

January 2020 Community Highlights

Make sure you didn't miss any of the things that happened in the community in January!

Top Solution Authors
Top Kudoed Authors