Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
tbobolz
Resolver I
Resolver I

Creating auto current and prior fiscal year calculation

I'm struggling  to find a solution to creating a calculation that finds the max fiscal year and prior fiscal year, then applies those to a calcultion. I'm a little new to Power BI and would appreciat e any help you could offer.

 

I have this measure that works fine:

Current Fiscal Year Actual = CALCULATE(sum('Gross Revenue by Service Area - FLAT'[Actual]), 'Gross Revenue by Service Area - FLAT'[Fiscal Year - FiscalYear]=2019)
 
I was hoping there's a way to replace the "2019" in the above measure with some that would automatically update each year.
 
I created this measure:
CFY VALUE = max('Gross Revenue by Service Area - FLAT'[Fiscal Year - FiscalYear])
 
Is there a way to convert this measure [CFY VALUE] to a values so that I may insert it into my calculation statement and not have to type in "2019"
 
Thanks for any help you can offer as i learn!
Terry
 
1 ACCEPTED SOLUTION
tbobolz
Resolver I
Resolver I

I found this tread that solves this issue, thanks to all you have looked!

 

https://community.powerbi.com/t5/Desktop/Set-a-filter-based-on-MAX/td-p/20175

 

I also extrapolated on this to create a MTD value as well, for comparing YOY MTD finding.

 

Thanks

Terry

 

View solution in original post

1 REPLY 1
tbobolz
Resolver I
Resolver I

I found this tread that solves this issue, thanks to all you have looked!

 

https://community.powerbi.com/t5/Desktop/Set-a-filter-based-on-MAX/td-p/20175

 

I also extrapolated on this to create a MTD value as well, for comparing YOY MTD finding.

 

Thanks

Terry

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.