Forum Discussion
JaipalAnu
Helper III
3 years agoChart should give the comparison between two years based on two plans selection
I am using Line and Clustered column chart, so I wanted to see the comparison of two years data based on two selected Plans. Example : I am using two slicers - One slicer contains Plan 1 data, ano...
- 3 years ago
Hi JaipalAnu
I prepared a sample PBIX, you can download it, and check if it is helpful.If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
amitchandak
Super User
3 years agoJaipalAnu , Make sure you are using a separate date or year table
This year =
var _max = maxx(summarize(allselected(Fact), Date[Year]), [Year])
return
calculate([meausre], filter(all(date), date[year] =_max) )
Last year =
var _max = maxx(summarize(allselected(Fact), Date[Year]), [Year])
return
calculate([meausre], filter(all(date), date[year] =_max-1 ) )