Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi,
Thanks in advance.
I think you can do it using an IF statement with SELECTEDVALUE function.
https://learn.microsoft.com/en-us/dax/selectedvalue-function
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.
Please provide an example to better understand your requirement.
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.
Hi,
Anyone can help please? Thanks.
Hello,
Logic as : If the value selected is = "This Month" then return 1
Else Return 0
Try this: If(Value(Date) = "This Month",1, If(Value(Date) = "This Year",2,etc.....
Or you can use SWITCH Case
Dont forget to accept this as a solution if it helped you 🙂
User | Count |
---|---|
77 | |
74 | |
63 | |
61 | |
45 |
User | Count |
---|---|
108 | |
102 | |
93 | |
83 | |
64 |