Forum Discussion
AlinaJa
6 years agoHelper I
Dynamic Target Line with bar chart
Hi all, I am looking for a way to create a stacked bar chart with a target line. The target line has to be dynamic depending on the filter criteria selected. At the moment, I have two different...
- 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
6 years agoCommunity Champion
AlinaJa This sounds like it might be related to your data model/relationships. Are you able to post a screenshot of that view or provide an overview with confidential info removed?
AlinaJa
6 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