Forum Discussion
dinesh_ch
7 years agoRegular Visitor
pass slicer value to Filter inside CalculatedTable expression
Hello, I have a table with below structure and slicer with MonthNum Metric MonthNum 10 1 40 2 70 3 100 4 20 5 Based on the selection of single ...
- 7 years ago
Hi dinesh_ch
Try these steps.
Please see attached file as well
First a calculated table which will be used as slicer
Months = VALUES ( YourTable[MonthNum] )
Now a MEASURE to be used as VISUAL filter
FilterMeasure = IF ( SELECTEDVALUE ( YourTable[MonthNum] ) <= SELECTEDVALUE ( Months[MonthNum] ), 1 )
dinesh_ch
7 years agoRegular Visitor
Thanks for the response.
Can you please help me in formulatig the query using measure to achieve the functionality.
Zubair_Muhammad
7 years agoCommunity Champion
Hi dinesh_ch
Try these steps.
Please see attached file as well
First a calculated table which will be used as slicer
Months = VALUES ( YourTable[MonthNum] )
Now a MEASURE to be used as VISUAL filter
FilterMeasure =
IF (
SELECTEDVALUE ( YourTable[MonthNum] ) <= SELECTEDVALUE ( Months[MonthNum] ),
1
)
- dinesh_ch7 years agoRegular Visitor
Thank you so much Zubair. It worked.