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.
If I select the date in date slicer 13/02/2023 then if i click on MTD option it will show me data in visuals from range 13/01/2023 to 13/02/2023, that is from selected date to the same date of previous month . Same for YTD .
Can some one help me here !
basically i want two slicer one is Date slicer and other is selection slicer conatining MTD,YTD,QTD.
You can creata a measure and use switch() function.
e.g
SWITCH(TRUE(),MAX([Type])="MTD",CALCULATE(..,DATESMTD(DateTime[DateKey])),MAX([Type])="YTD",CALCULATE(..,DATESYTD(DateTime[DateKey])),MAX([Type])="QTD",CALCULATE(...,DATESQTD(DateTime[DateKey]))
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
---|---|
47 | |
24 | |
20 | |
15 | |
13 |
User | Count |
---|---|
55 | |
48 | |
43 | |
19 | |
19 |