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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.