Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Preparing for a certification exam? Ask exam experts all your questions on May 15th. Register now.
Financial Year starts from 1st June and ends on 31st May, how to calculate sum from first day of the financial year to the last day of the previous month dynamically.
Date column is all dates
DAX:
Solved! Go to Solution.
Correct.
Here's a quick example on DAX.do:
Sales YTD Previous Month is the measure similar to the one you're interested in.
Sales YTD Current Month is a traditional YTD measure.
When the maximum Date filtered is in October 2007
Is that what you were looking for?
Regards
Hi @roysampad91
If I've understood you correctly, you want your measure to return the YTD value of [XXXXX] evaluated as at the end of the month prior to the filtered date (based on June-May year).
I think this can be simplified to something like:
YTD CP OER =
CALCULATE (
[XXXXX],
DATESYTD (
PREVIOUSMONTH ( 'Date'[Date] ),
"5/31"
)
)
assuming a properly configured Date table (marked as Date table etc).
Does this give the expected result?
Regards
Will it calculate till the last day of the previous month?
Correct.
Here's a quick example on DAX.do:
Sales YTD Previous Month is the measure similar to the one you're interested in.
Sales YTD Current Month is a traditional YTD measure.
When the maximum Date filtered is in October 2007
Is that what you were looking for?
Regards
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 |
---|---|
76 | |
74 | |
70 | |
47 | |
41 |
User | Count |
---|---|
64 | |
41 | |
32 | |
30 | |
28 |