The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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
Solved! Go to Solution.
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
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 @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
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 @Anonymous
Thank's for your update!
@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])))
User | Count |
---|---|
24 | |
10 | |
8 | |
6 | |
5 |
User | Count |
---|---|
31 | |
11 | |
10 | |
10 | |
9 |