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
Riteshheda
Frequent Visitor

Dynamic Chart Title as per last Drill down / filter

Hi All Genuises,

 

I want to create a dynamic chart title based on current drill-down level/filter and should reflect value from that certain column.

 

Example: I have a 5 level drill-down, A->B->C->D->E. Tried to use a measure but getting all filter values in chart title. 

 

On drill-down to "C", I want "Sales for C" and not as "Sales for A->B->C"

if its for D, then "Sales for D"

Query: Measure to return current filter / drill-down value on entire page.

 

Thanks

 

1 ACCEPTED SOLUTION
Riteshheda
Frequent Visitor

I am using below code for Dynamic Chart Title

 

ChartTitle =
var SBU_name = SELECTEDVALUE(SBU[SBU],"All SBUs") & ""
var Mth = if(
ISFILTERED('Calendar'[Month]),
SELECTEDVALUE('Calendar'[Month]) & "> ",
"")
var Dist_Chnl = if(
ISFILTERED(ZFND_New[DC]),
"> " & SELECTEDVALUE(ZFND_New[DC]),
"")
var Div_name = if(
ISFILTERED(Division[Sales Office]),
"> " & SELECTEDVALUE(Division[Sales Office]),
"")
var RG_name = if(
ISFILTERED(Region[Region-Group]),
"> " & SELECTEDVALUE(Region[Region-Group]),
"")
var SG_name = if(
ISFILTERED('Sales Group'[SG Description]),
"> " & SELECTEDVALUE('Sales Group'[SG Description]),
"")
var SD_name = if(
ISFILTERED(ZFND_New[District name]),
"> " & SELECTEDVALUE(ZFND_New[District name]),
"")
return
"Net O/s. for " & Mth & SBU_name & Dist_Chnl & Div_name & RG_name & SG_name & SD_name

View solution in original post

5 REPLIES 5
Riteshheda
Frequent Visitor

I am using below code for Dynamic Chart Title

 

ChartTitle =
var SBU_name = SELECTEDVALUE(SBU[SBU],"All SBUs") & ""
var Mth = if(
ISFILTERED('Calendar'[Month]),
SELECTEDVALUE('Calendar'[Month]) & "> ",
"")
var Dist_Chnl = if(
ISFILTERED(ZFND_New[DC]),
"> " & SELECTEDVALUE(ZFND_New[DC]),
"")
var Div_name = if(
ISFILTERED(Division[Sales Office]),
"> " & SELECTEDVALUE(Division[Sales Office]),
"")
var RG_name = if(
ISFILTERED(Region[Region-Group]),
"> " & SELECTEDVALUE(Region[Region-Group]),
"")
var SG_name = if(
ISFILTERED('Sales Group'[SG Description]),
"> " & SELECTEDVALUE('Sales Group'[SG Description]),
"")
var SD_name = if(
ISFILTERED(ZFND_New[District name]),
"> " & SELECTEDVALUE(ZFND_New[District name]),
"")
return
"Net O/s. for " & Mth & SBU_name & Dist_Chnl & Div_name & RG_name & SG_name & SD_name

Hi @Riteshheda,

 

You can refer this to achieve Dynamic Chart Title.

The sample works well.

 

Best Regards,

Link

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

v-xulin-mstf
Community Support
Community Support

Hi @Riteshheda,

 

Maybe Drill Pathways can meet your needs, please refer: Drill pathways

1.png2.png3.png

Best Regards,

Link

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

Thanks for reply, but not looking for drill solution. I want Dynamic Chart Title based on selected drill level.

 

Example: I have a 5 level drill-down, A->B->C->D->E. Tried to use a measure but getting all filter values in chart title. 

 

On drill-down to "C", I want Chart Title as "Sales for C" and not as "Sales for A & B & C"

On drill-down to "D", I want Chart Title as "Sales for D" and not as "Sales for A & B & C & D"

lbendlin
Super User
Super User

Try disabling the "Keep all filters"  option

 

lbendlin_0-1614221966738.png

 

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.