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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors