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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Dimitri70
Helper I
Helper I

Calculate % change between series of different date

Hello everyone,

I'm facing some issue on Power Bi.

I'm trying to calculate the percentage of change betwen different series. Example 8/19 is my initial serie and I would like to compare the %change happened on 8/20 and then same on 8/21. Ideally, it would be good to compared only the serie I select example 8/21 vs 8/20 or 8/21 vs 8/19, if it is possible. Do you know how I can proceed?

Dimitri70_0-1755653351527.png

 

1 ACCEPTED SOLUTION

Hi @Dimitri70 ,

Please do some changes as below,

Create a independent Date dimension table DATE_DIM and slicer dates should come from this table.

write the below measure and place it in the visual filter

IS_DATE_SELECTED = IF(MAX('Table'[Date]) in values(DATE_DIM[Date]),1,0)

 

Aburar_123_1-1755667975063.png

 

 

Thanks you

 

View solution in original post

3 REPLIES 3
Aburar_123
Solution Supplier
Solution Supplier

Hi @Dimitri70 ,

Please find the below approach,

I have a table like below

Aburar_123_0-1755656014867.png

I have written the %diff measure like below

%diff =
var first_value=CALCULATE(SUM('Table'[Value]),'Table'[Date]=MIN('Table'[Date]))
var second_value = CALCULATE(SUM('Table'[Value]),'Table'[Date]=MAX('Table'[Date]))
return divide((first_value-second_value),first_value)*100
Aburar_123_1-1755656084035.png

 

Thank you

Hello Aburar_123,

thanks a lot for the proposal. It works when I put in the card, but I tried to put this in a matrix to see the change month by month between the different date extracted and it that case result show is always 0 

Dimitri70_0-1755657216392.png

 

Hi @Dimitri70 ,

Please do some changes as below,

Create a independent Date dimension table DATE_DIM and slicer dates should come from this table.

write the below measure and place it in the visual filter

IS_DATE_SELECTED = IF(MAX('Table'[Date]) in values(DATE_DIM[Date]),1,0)

 

Aburar_123_1-1755667975063.png

 

 

Thanks you

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 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.