Forum Discussion
Selection from Slicer
I think you can do it using an IF statement with SELECTEDVALUE function.
https://learn.microsoft.com/en-us/dax/selectedvalue-function
- sarikei3 years agoHelper I
Thanks JorgePinho, Yes, I got it work as following!
MySelection = IF(
SELECTEDVALUE(DateTable[Date Selection]) = "This month",
"Yes","No"
)
Now, instead of “Yes”, if the selection is “This month”, I actually want to read the “From – To” date value from the other Slicer. And then group them together. Then I will use this measure in the other visual (bar chart). I know how to read the “From – To” value using:
MIN(DateTable[Date Selection])
MAX(DateTable[Date Selection])
But how can group all the value from this??
Many thanks.
- sarikei3 years agoHelper I
Hi,
Anyone can help please? Thanks.
- MAwwad3 years agoSolution Sage
Please provide an example to better understand your requirement.
- sarikei3 years agoHelper I
Hi,
So I want to read the "From - To" date from the Slicer into the new measure.
Then I want use this Measure in another Visual, so the data selection in this Visual will be based on this Measure (which is From - To from the Slicer).
How to do this please? Thank you.