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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
nleuck
Post Patron
Post Patron

percent change on a percent column

Is it possible to use a DAX function to get a measure that calculates the % change for each Store from year to year? I brought the table in from SQL Server Database. This is an example of what some of my data looks like. I formatted the %Compliant column after I brought it into Power BI.

Any help would be great. Thanks for your time.

 

Year          StoreID          Items Compliant          Total Items          %Compliant

2014          1                    10                                 15                        66.67%

2014          2                    16                                 20                        80.00%

2014          3                    14                                 31                        45.16%

2015          1                    20                                 29                        68.97%

2015          2                    19                                 38                        50.00%

2015          3                    9                                   25                        36.00%

2016          1                    23                                 28                        82.14%

2016          2                    27                                 41                        65.85% 

2016          3                    12                                 17                        70.59%

3 REPLIES 3
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @nleuck,

 

Based on my understanding, you want to calculate the year over year percent change of [Items Compliant] for each StoreID, right?

 

To achieve that requirement, I added some extra columns into original table, please see below:

1.PNG

 

DAX formulas for each calculated column:

previous Year = 'percent change'[Year]-1 & "," & 'percent change'[StoreID]

Current Year = 'percent change'[Year] & ","& 'percent change'[StoreID]

Previous Value =
LOOKUPVALUE (
    'percent change'[Items Compliant],
    'percent change'[Current Year], 'percent change'[previous Year]
)

Percent Change =
DIVIDE (
    'percent change'[Items Compliant] - 'percent change'[Previous Value],
    'percent change'[Previous Value]
)

Best regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-yulgu-msft

 

Thanks again, I needed to look at my data in a different way but I believe I've figured out my answer to my own question. Your formula helped realize I was looking at the data in the wrong way. Thanks again for your help.

Thank you for your response. I'm actually wondering if it is possible to do the percent change calculation on the column %Compliant?

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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 community update carousel

Fabric Community Update - June 2025

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