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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
AdrianHeald
Frequent Visitor

How to work out which level of hierarchy the user has selected on a chart

Hi there,
   I have a chart which has a date hierarchy on the X axis and reports the total cost by some categories. I also have a card that shows the total cost for items selected on the chart.  i.e. if a user click the month on the chart then to total for the month is shown, click a day then total for the day,year, total for the year.  I would like to have another card that shows what the user clicked on, So if they clicked on "March" to see the total for march this second card should show March.  If they click the Year on the chart  then it should show the Year clicked.  However, I can't figure out how to determine in DAX what was clicked, is this even possible?

 

 

1 REPLY 1
rautaniket0077
Resolver I
Resolver I

Try using this below measure.

Measure  = SELECTEDVALUE('Date'[Month])

please accept my answer as solution if it solves your issue.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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