Forum Discussion
Date Selection
This was really helpful but i'm not quite getting what i need. What I would really like is for the top slicer to contriol the monetary card below and the second slicer to select a date for the comparison percentage card. Do you know if this is possible in PowerBi?
- Anonymous1 year agoNot applicable
Hi AMitchell
Thanks for the reply from freginier .
If I understand correctly, you want the slicer above to affect the card on the left, and then compare it to the value of the date selected in the slicer below, presented in the card on the right, right?
If so, the following test is for your reference:
My sample:
Create two calculated tables as slicers.
You can change the slicer style to “Vertical list”.
Create two measures as follow
sum = CALCULATE(SUM('Table'[values]), FILTER('Table', [Date] = SELECTEDVALUE(Slicer2[Date])))Measure = VAR _sum = CALCULATE(SUM('Table'[values]), FILTER('Table', [Date] = SELECTEDVALUE(Slicer1[Date]))) RETURN DIVIDE(_sum, [sum])Output:
Best Regards,
Yulia XuIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.