Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
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
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
105 | |
69 | |
48 | |
47 | |
47 |