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

Chart Titles that adjust to the drill down layer

I'm looking for a way to change messages based on different drill down levels in a bar chart.  My hierarchy is Trade, Manager, Representative, State, Market, Vendor.

 

This is my DAX formula so far...

 

Selected = VAR Selected = FIRSTNONBLANK(Trade[Contrel Trade],TRUE)                                                                                                               VAR selected_trade = FIRSTNONBLANK(Trade[Contrel Trade],TRUE)  

                  VAR selected_Manager_Name = FIRSTNONBLANK('Contrel Manager'[MANAGER_NAME],TRUE)  

                  VAR topvolumebyMarket =MAXX(SUMMARIZECOLUMNS(Dispatch[MANAGER_NAME],Dispatch[MARKET],

"MaxDispVolume",Dispatch[Disp Count]),[MaxDispVolume])          

                RETURN

                     IF(HASONEVALUE('Contrel Manager'[MANAGER_NAME]), selected_Manager_Name & "'s largest dispatch volume is in Market " & FORMAT(topvolumebyMarket,"###,0"),"PICK SOMETHING!!!")

 

The return statement works if I go to that layer in the chart, but I lose it if I use the 'Drill Down' feature.  I can't seem to get any of the other layers to respond either.  ANy help is greatly appreciated!!!

3 REPLIES 3
Super User
Super User

Re: Chart Titles that adjust to the drill down layer

Drill down does not change filter context, so your measures won't update. I thought the standard headings auto updated during drill through



* Matt is a Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
codyraptor Regular Visitor
Regular Visitor

Re: Chart Titles that adjust to the drill down layer

I'm not using standard headings...I'm using a card to call out specific information based on the drill down.  Another words...it would be a dynamic card to say something based on selected State...the next level..I might change the message based on selected Manager...etc...

Super User
Super User

Re: Chart Titles that adjust to the drill down layer

And as I said, drill down does not change filter context, so this approach is not going to work.  But if you look at the standard headings I think you will find that they do work.



* Matt is a Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

Helpful resources

Announcements
Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Power BI Helps Homeless and Trouble Youth

Power BI Helps Homeless and Trouble Youth

We spoke with Power BI Super User, Greg Deckler, about his charity work

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 35 members 1,056 guests
Please welcome our newest community members: