Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I am plotting cumulative actuals against a forecast. However, I only want to plot the actual results up until the previous month we have actuals for. This excludes issues with having partial months actuals. So if for example our most recent actual result was on the 1st of April 2018, I only want include results up until March 2018.
I am able to create the base plot (see screenshot below), but I can't figure out how to exclude the most recent month (April).
Here is my code,
Cumulative Actuals_forum3 = IF( LASTDATE( 'DateDim'[Date]) > [Max Month with Actuals], BLANK(), CALCULATE(( Detailed_Breakdown[Actuals.]), FILTER( ALLSELECTED( 'DateDim' ), 'DateDim'[Date] <= MAX( 'DateDim'[Date]))) )
I would have though that I could have subtracted one month from the [Max month with Actuals] measure- but that doesn't work. Here is my Measure that subrtacts one month
Max Month with Actuals - 1 month = EDATE([Max Month with Actuals],-1)
Any ideas or suggestions would be welcome.
Cheers !
Solved! Go to Solution.
You may try to change it as follows.
IF ( LASTDATE ( 'DateDim'[Date] ) >= CALCULATE ( [Max Month with Actuals], ALLSELECTED ( 'DateDim'[Date] ) ),
You may try to change it as follows.
IF ( LASTDATE ( 'DateDim'[Date] ) >= CALCULATE ( [Max Month with Actuals], ALLSELECTED ( 'DateDim'[Date] ) ),
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
66 | |
51 | |
45 |
User | Count |
---|---|
216 | |
89 | |
82 | |
66 | |
57 |