The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi,
I have a Date Slicer for the report, and wantto display YTD measure.
When the End of Previous Year is within the Date Slicer selection, this is not a problem, but if for example the date slicer selects Feb 2022 to July 2022, then how do I get the data for Dec 2021 and July 2022 ?
Thanks.
Solved! Go to Solution.
YTD = CALCULATE( <your expression>, DATESYTD(LASTDATE('Date'[Date])), ALL(Date))
Thank you. Had to modify a little bit to get ONLY THE FIRST MONTH, but you solved the key part of it. Thanks again.
@Saniat ,
1. yes
2. yes
3. yes - the slicer is based on that table
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
109 | |
80 | |
77 | |
46 | |
39 |
User | Count |
---|---|
137 | |
108 | |
64 | |
64 | |
53 |