Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!View all the Fabric Data Days sessions on demand. View schedule
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 🙂
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!