Forum Discussion
DAX selected years
- 3 years ago
Hello
after a lot of struggle i found the solution to my problem
basically I had to create several calendars and use the formula CALCULATE([Year Value],USERELATIONSHIP('Calendar Year 1'[Date],Sales[Date])) for each selected year
it Works very well
send the example for knowledge
EXEMPLEThank you all for your help
Hi ngomes
Since you want to compare Quantities by year selected, I think it would be simple to add 3 date slicers and cards for each selected year using "Edit interaction" feature to stop slicers from interacting with the wrong cards.
This way you leave the liberty for the user to choose what year on each slicer and for the cards to display the quantity of sales in each year selected
I have this slicer for the user to choose the years
I don't know if I explained myself well, but what I want are not the values of the chosen years, these I have already calculated
what intending is to compare the chosen years