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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
djoellet
Frequent Visitor

Dynamic Title When Drilling Down

Hello,

I am a new PBI user and I am having the hardest time creating a dynamic title for my chart when drilling down.  I have been successful before when there is only one level two drill down but I am getting stuck with drilling down twice.  Below is an example of my levels.  Any assistance would be appreciated.  Thank you!

 

Category

Subcategory

Product 

1 ACCEPTED SOLUTION

@djoellet 
Try this:

 

Title Label =

Label =
VAR Category =
    SELECTEDVALUE ( 'May 2022'[Category] )
VAR Subcategory =
    SELECTEDVALUE ( 'May 2022'[Subcategory] )
VAR Product =
    SELECTEDVALUE ( 'May 2022'[Product] )
RETURN
    IF (
        ISINSCOPE ( 'May 2022'[Product] ),
        Product & " Detail",
        IF (
            ISINSCOPE ( 'May 2022'[Professional Subcategory] ),
            Subcategory & " Detail",
            IF (
                ISINSCOPE ( 'May 2022'[Category] ),
                Category & " Detail"
            )
        )
    )

 


2022-05-09 22_36_04-Power BI Workspace Datasets License Permissions - Microsoft Power BI Community.png

Showcase Report – Contoso By SpartaBI


SpartaBI_3-1652115470761.png  SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Full-Logo11.png

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

Thank you for your response!  I wanted to provide additional details, below is the formula I am using:

 

Title Label =

var Category = SELECTEDVALUE('May 2022'[Category])

var Subcategory = SELECTEDVALUE('May 2022'[Subcategory])

var Product = SELECTEDVALUE('May 2022'[Product])

 

Return

 

IF (ISFILTERED('May 2022'[Category]),

     Category & " Detail",

        IF(ISFILTERED('May 2022'[Professional Subcategory]),

             Subcategory & " Detail"),

                IF(ISFILTERED('May 2022'[Product]),

                    Product & " Detail")

 

@djoellet 
Try this:

 

Title Label =

Label =
VAR Category =
    SELECTEDVALUE ( 'May 2022'[Category] )
VAR Subcategory =
    SELECTEDVALUE ( 'May 2022'[Subcategory] )
VAR Product =
    SELECTEDVALUE ( 'May 2022'[Product] )
RETURN
    IF (
        ISINSCOPE ( 'May 2022'[Product] ),
        Product & " Detail",
        IF (
            ISINSCOPE ( 'May 2022'[Professional Subcategory] ),
            Subcategory & " Detail",
            IF (
                ISINSCOPE ( 'May 2022'[Category] ),
                Category & " Detail"
            )
        )
    )

 


2022-05-09 22_36_04-Power BI Workspace Datasets License Permissions - Microsoft Power BI Community.png

Showcase Report – Contoso By SpartaBI


SpartaBI_3-1652115470761.png  SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Full-Logo11.png

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Power BI Header Change

Power BI Header Update

Read about the exciting updates for the Power BI forum.

Top Solution Authors