Forum Discussion
jeseng
5 years agoHelper III
Comparing line chart
Hi, I have a line chart, my users choose an area from a slicer. The line chart then shows the population growth for this area. What I want is to show a second line, an other area (Göteborg) to comp...
Anonymous
5 years agoNot applicable
Hi jeseng ,
According to your description, I create this data:
Here are the steps you can follow:
1. Create measure.
Locked in (Gothenburg) development:
Gothenburg region all =
SUMX(FILTER(ALL('Table'),'Table'[Year]=MAX('Table'[Year])),'Table'[people])User selected:
User chooise =
var _select=SELECTEDVALUE('Slicer'[Region])
var _1=CALCULATE(SUM('Table'[people]),FILTER('Table','Table'[Gothenburg region]=_select&&'Table'[Year]=MAX('Table'[Year])))
return _12. Result.
You can downloaded PBIX file from here.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.