The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have created a DAX measure that shows me a rolling total over time:
I would like to add a new column that shows the percentage of change between years over time and I have not been able to figure this out.
Any help is greatly appreciated.
Thank you
Don Price
Solved! Go to Solution.
Hi @Don_P ,
You can refer the following links to get it:
Calculating Percentage Change in Power BI - A Guide - Monocroft [0492-9f27-475-7563]
YTD Sales = TOTALYTD(SUM(Sales[Amount]), 'Calendar'[Date])
YTD % Change =
DIVIDE (
[YTD Sales]
- CALCULATE ( [YTD Sales], DATEADD ( 'Calendar'[Date], -12, MONTH ) ),
CALCULATE ( [YTD Sales], DATEADD ( 'Calendar'[Date], -12, MONTH ) )
)
Power BI Year-Over-Year Growth % Calculations [DAX] - YouTube
If the above one can't help you, please provide some raw data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It would be helpful to find out the solution. You can refer the following link to share the required info:
How to provide sample data in the Power BI Forum
And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
Thank you, everyone,
I believe I have found a different way to achieve this.
I first created a measure to show me this year's number in this manner: Service Hours = CALCULATE(SUM(D365[Hours]),FILTER('Date','Date'[Date]))
I then created a measure to show me the previous year's number: Previous Year Service Hours = CALCULATE(SUM(D365[Hours]),SAMEPERIODLASTYEAR('Date'[Date]))
I then created a measure like this to calculate the percentage of change: Service Hours % of Change = IF(([Service Hours]/[Previus Year Service Hours]-1) = -1,BLANK(),IFERROR(([Service Hours]/[Previus Year Service Hours]-1), BLANK()))
Hi @Don_P ,
You can refer the following links to get it:
Calculating Percentage Change in Power BI - A Guide - Monocroft [0492-9f27-475-7563]
YTD Sales = TOTALYTD(SUM(Sales[Amount]), 'Calendar'[Date])
YTD % Change =
DIVIDE (
[YTD Sales]
- CALCULATE ( [YTD Sales], DATEADD ( 'Calendar'[Date], -12, MONTH ) ),
CALCULATE ( [YTD Sales], DATEADD ( 'Calendar'[Date], -12, MONTH ) )
)
Power BI Year-Over-Year Growth % Calculations [DAX] - YouTube
If the above one can't help you, please provide some raw data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It would be helpful to find out the solution. You can refer the following link to share the required info:
How to provide sample data in the Power BI Forum
And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
User | Count |
---|---|
13 | |
8 | |
6 | |
6 | |
5 |
User | Count |
---|---|
24 | |
14 | |
13 | |
8 | |
8 |