Forum Discussion
Dynamic Target Line with bar chart
- 6 years ago
AlinaJa Maybe you could post photo or sample pbix? I don't understand what isn't working.
That is what I get when I use your sample data, with Target[Location] in the slicer, and Target[Location] in the column series of the chart (though maybe not needed).
If no location is selected, the target will add up to sum of all locations, but when location is selected it behaves as expected.
Is that what you're looking for?
AllisonKennedy The problem is that if I add the column from my target table as line values, it always gives me the sum of all targets. No matter which location I select.
If I add the target as a column to the other table and then add it to the graph as the line value, I have to choose whether I want to use the average/sum/Min/Max/... But I don't want any of these, I just want the actual value for this location.
- AlinaJa6 years agoHelper I
AllisonKennedy I set up a Many:1 relationship between the two tables by using the Location Column. I posted Example Data above
- AllisonKennedy6 years agoCommunity Champion
Which Location are you using in the line chart? You need to use the Location from the Target table. You will still need to use an aggregation, but if your table is built properly it won't matter if you use SUM/Avg/max as they'll all give the same result.
- AlinaJa6 years agoHelper I
The one from the target table. It just shows the total target for all locations, which doesn't change when I select a location AllisonKennedy