Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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 🙂
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
100 | |
81 | |
70 | |
62 |
User | Count |
---|---|
148 | |
116 | |
104 | |
90 | |
65 |