Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
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, another contains plan 2 data (both plans depends on years)
Plan 1 contains 2020,2021
Plan 2 contains 2022,2023
When we select Plan 1 as P2021 and Plan 2 as P2023 then it should give the comparison like below image. (Below image has 6 years data) But the comparison should gives based on two plans selection in two slicers and data should show for all the years.
Thanks is Advance
Solved! Go to Solution.
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.
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.
My Data is like this actually, it is not about years. it is just plans so it has to give comparison between to selected plans which we select in the slicers that has to show in the chart and it has to show for all the 10 years.
@JaipalAnu
Can you share some dummy pbx / data table?
However, based on the pictures you attached, I am not sure what the data is and what you are trying to accomplish.
Thanks for your reply!
The requitement is the slicer should be single selection, so need comparison between two slicers selections (Plan1 and Plan2)
@JaipalAnu , 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 ) )
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 40 | |
| 38 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 70 | |
| 69 | |
| 34 | |
| 33 | |
| 30 |