Forum Discussion
octomore
4 years agoNew Member
Use filters for specific colums in matrix
Hi all, I'm a begginer with Power BI , and i'm unable to use filters properly. I have 1 main table Month / Year / Department / QT sold. I'd like to compare Qt sold during 2 choosen year ( Curr...
- 4 years ago
If you want to compare random fields e.g.:-
- 2022 vs 2019
- 2022 vs 2021
- 2021 vs 2015 ...
then you cant do it will 2 slicers on the same dataset,
because when you slice by 2022 the data will only be for 2022.
The solution is to use 2 copies of the data each with a slicer.
With no relationship with each other.Then have 3 measures:-
YearA = SUM(SalesfileA[value])
YearB = SUM(SalesfileB[value])
Difference = YearA - YearB
You can then have 2 slicer
SalesfileA[Year] and SalesfileB[Year]
You can imporve the solution using 2 Calendar tables, but the principle is the same.
Please click the thumbs up and Accept As Solution
speedramps
Super User
4 years agoThank you octomore 😀