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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
LukeBrowneUK
New Member

All-time % change where the beginning year changes based on state

Hello,

 

I am currently working on a project regarding premiums in the US.

 

I need to show an all time change (%) on the average limit any one unit for each state from when we starting taking premiums to today. For some states the beginning year changes because we may have only recently operated in a state and thus I can't figure out how to do an all-time change based on the beginning year changing. 

 

For example, in Colorado, if last year the average limit anyone unit loss is $100,000 and in 2022 if the average limit anyone unit  $125,000; then the all time change would be 25%. Likewise, in Montana, in 2019 the average limit anyone unit loss was $100,000 and in 2022 the average limit anyone unit loss $150,000; then the all time change would be 50%.

 

So far have only managed to have a formula for the below:

LukeBrowneUK_0-1664788149686.png

 

As you can see, I need the _Baseline_Value to change based on when we first started taking in premiums. Btw, the State, the limit anyone unit, the premiums and the date are all on the same excel sheet together; so maybe I'm just being dumb!

 

Any advice/help would be greatly appreciated!

 

Best,

Luke

 

 

 

1 REPLY 1
v-chenwuz-msft
Community Support
Community Support

Hi @LukeBrowneUK ,

 

So your goal is to get the first year of the state first.

 

var _firstyear = calculate( Year(min('Risk data'[Lasted updated date])), allexpect('Risk data','Risk data'[states]))

 

Then  _Baseline_Value

calculate( average('Risk data'[limite any one unit]) , 'Risk data'[Lasted updated date] = _firstyear)

 

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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