Forum Discussion
SaaM
Helper II
5 years agoBar chart by category with total
Hi all, Here a preview of my data: and I would like to have something like this: How I proceed to get this: I created one graph with the data athlete and the distance runned ...
- 5 years ago
Create a measure along the lines of:
Distance to goal = [Goal]-[Distance Run]Then create the stacked chart with the [Distance run] and [Distance to goal] measures. Turn on the "Labels" & "Total label" in the formatting pane, and if you want to sort the visual by Goal, add the goal measure to the Tooltips. And you get this:
I've attached the sample PBIX file
PaulDBrown
Community Champion
5 years agoCreate a measure along the lines of:
Distance to goal = [Goal]-[Distance Run]
Then create the stacked chart with the [Distance run] and [Distance to goal] measures. Turn on the "Labels" & "Total label" in the formatting pane, and if you want to sort the visual by Goal, add the goal measure to the Tooltips. And you get this:
I've attached the sample PBIX file