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
Bhanu_chPBI
Helper I
Helper I

How to calculate with cumulative percentage with particular year.

Hi!

 

I need to calculate the cumulative percentage as 

(curr-first year/firstyear)

 

What I need is to have another column with cumulative percentage with 0%, 100%, 160%, 200%.

 

Any idea how to do it? 

 

Thanks

CH. Bhanu

2 ACCEPTED SOLUTIONS
v-cgao-msft
Community Support
Community Support

Hi @Bhanu_chPBI ,

 

Please try these measures.

Curr-First Year = 
CALCULATE(SUM('Table'[Value]),'Calendar'[Date]<MAX('Calendar'[Date]))
First Year = 
CALCULATE(SUM('Table'[Value]),FILTER(ALL('Calendar'),'Calendar'[Year]=MIN('Calendar'[Year])))
Curr-First Year/First Year = 
DIVIDE([Curr-First Year],[First Year])+0

vcgaomsft_0-1656656342195.png

The PBIX file is attached for reference.

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

View solution in original post

Hi @v-cgao-msft 

 

Thank's for your update!

View solution in original post

3 REPLIES 3
v-cgao-msft
Community Support
Community Support

Hi @Bhanu_chPBI ,

 

Please try these measures.

Curr-First Year = 
CALCULATE(SUM('Table'[Value]),'Calendar'[Date]<MAX('Calendar'[Date]))
First Year = 
CALCULATE(SUM('Table'[Value]),FILTER(ALL('Calendar'),'Calendar'[Year]=MIN('Calendar'[Year])))
Curr-First Year/First Year = 
DIVIDE([Curr-First Year],[First Year])+0

vcgaomsft_0-1656656342195.png

The PBIX file is attached for reference.

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

Hi @v-cgao-msft 

 

Thank's for your update!

amitchandak
Super User
Super User

@Bhanu_chPBI , for denominator you can have one of the following to get year data

 

example

This year Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(ENDOFYEAR('Date'[Date]),"12/31"))

 

This Year = CALCULATE(sum('Table'[Qty]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])))

 


 

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.

Top Solution Authors