Forum Discussion
Anonymous
6 years agoNot applicable
DAX for a tooltip visual
Hello, I have a horizontal bar chart displaying the number of story points completed by area. I want to create a tooltip that includes a pie chart allowing the user to get a visual representation o...
- Anonymous6 years ago
I got this one figured out!
I created these 3 measures:
Total = CALCULATE( SUM ( 'Sheet1'[StoryPoints] ) , ALL ( 'Sheet1'[AreaLevel] ) )Selected = CALCULATE(SUM ( 'Sheet1'[StoryPoints] ) , ALLSELECTED ( 'Sheet1'[AreaLevel] ) )NotSelected = CALCULATE( [Total] - [Selected] )Then, I put the Selected and NotSelected measures in the pie chart Values. Voila! I still have a little formatting to do, but this is working great!
TomMartens
Super User
6 years agoHey Anonymous ,
please upload the pbix with sample data to onedrive or dropbox and share the link.
Regards,
Tom
Anonymous
6 years agoNot applicable
I got this one figured out!
I created these 3 measures:
Total = CALCULATE( SUM ( 'Sheet1'[StoryPoints] ) , ALL ( 'Sheet1'[AreaLevel] ) )
Selected = CALCULATE(SUM ( 'Sheet1'[StoryPoints] ) , ALLSELECTED ( 'Sheet1'[AreaLevel] ) )
NotSelected = CALCULATE( [Total] - [Selected] )
Then, I put the Selected and NotSelected measures in the pie chart Values. Voila! I still have a little formatting to do, but this is working great!