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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
MKumar_17
Helper I
Helper I

Want to create a dynamic title for two filters

Hi All,

I have two filters managers and Employees. I want to create a dynamic title based on selection of filters

 

MKumar_17_2-1726657067495.png

Eg. If I select a manager and also select a employee then dynamic title is working fine. As shown below.

 

MKumar_17_3-1726657233193.png

 

But as I select only from employee filter then manager name is also coming in dynamic title which I don't require. As shown below. 

 

MKumar_17_1-1726657032345.png

 

I want to see title with only which filter value is selected 

 

Thanks!

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi, @MKumar_17 

You can try using the following measure to solve your need.

vyaningymsft_0-1726710803299.pngvyaningymsft_1-1726710816086.pngvyaningymsft_2-1726710831412.pngvyaningymsft_3-1726710847393.png

 

dynamic_header = 
VAR _manager =
    IF ( ISFILTERED ( Sheet1[Managers] ), MAX ( Sheet1[Managers] ) )
VAR _emp =
    IF ( ISFILTERED ( Sheet1[Employees] ), MAX ( Sheet1[Employees] ) )
RETURN
    IF (
        ISFILTERED ( Sheet1[Employees] ) && ISFILTERED ( Sheet1[Managers] ),
        "Detailed Report" & " of managers " & _manager & " for employee " & _emp,
        IF (
            ISFILTERED ( Sheet1[Employees] ) && ( NOT ISFILTERED ( Sheet1[Managers] ) ),
            "Detailed Report" & " for employee " & _emp,
            IF (
                ISFILTERED ( Sheet1[Managers] ) && ( NOT ISFILTERED ( Sheet1[Employees] ) ),
                "Detailed Report" & " for manager " & _manager,
                "Detailed Report" & " of managers " & " for employee "
            )
        )
    )

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

Thank you so much @Anonymous 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi, @MKumar_17 

You can try using the following measure to solve your need.

vyaningymsft_0-1726710803299.pngvyaningymsft_1-1726710816086.pngvyaningymsft_2-1726710831412.pngvyaningymsft_3-1726710847393.png

 

dynamic_header = 
VAR _manager =
    IF ( ISFILTERED ( Sheet1[Managers] ), MAX ( Sheet1[Managers] ) )
VAR _emp =
    IF ( ISFILTERED ( Sheet1[Employees] ), MAX ( Sheet1[Employees] ) )
RETURN
    IF (
        ISFILTERED ( Sheet1[Employees] ) && ISFILTERED ( Sheet1[Managers] ),
        "Detailed Report" & " of managers " & _manager & " for employee " & _emp,
        IF (
            ISFILTERED ( Sheet1[Employees] ) && ( NOT ISFILTERED ( Sheet1[Managers] ) ),
            "Detailed Report" & " for employee " & _emp,
            IF (
                ISFILTERED ( Sheet1[Managers] ) && ( NOT ISFILTERED ( Sheet1[Employees] ) ),
                "Detailed Report" & " for manager " & _manager,
                "Detailed Report" & " of managers " & " for employee "
            )
        )
    )

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Thank you so much @Anonymous 

MKumar_17
Helper I
Helper I

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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