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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
nesrine
Frequent Visitor

Variations with specific dates

Hello ! 

i' looking to calculate the variation between two values by week. So if i have a coloun of date, i need to know the variation every week and be able to show it in my dashboard filtrerd by week chosen .

THANK YOU VERY MUCH FOR YOUR HELP

Capture.PNG

1 ACCEPTED SOLUTION

Hi @nesrine,

 

If you want to calculate the Evolution, it seems that you want to calcuate the difference in one column based on date. You could refer to the fomula below.

 

Column =
VAR tem =
    CALCULATE (
        MAX ( 'Table2'[NB app] ),
        FILTER ( 'Table2', EARLIER ( 'Table2'[Date] ) > 'Table2'[Date] )
    )
RETURN
    'Table2'[NB app]
        - IF ( tem = BLANK (), 'Table2'[NB app], tem )

 

output.PNG

 

Best  Regards,

Cherry

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

View solution in original post

3 REPLIES 3
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @nesrine,


i' looking to calculate the variation between two values by week. So if i have a coloun of date, i need to know the variation every week and be able to show it in my dashboard filtrerd by week chosen .

 

Do you want to create a slicer with date and filter the week to show the variation?

 

Based on your imgae, it seems that the values in some rows are duplicate. Do you want to calculated the Evoloution column or that is the original data?

 

I 'm a little confused about your scenario, could you share your data sample which could reporduce your scenario and your desired output so that we could help further on it.

 

Best Regards,

Cherry

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

Hello,

yes, in fact it's not clear. 

so my output is the coloun evolution, i want to show it in my dashboard every time i choose a date 

 

thank you,

best regards,

Hi @nesrine,

 

If you want to calculate the Evolution, it seems that you want to calcuate the difference in one column based on date. You could refer to the fomula below.

 

Column =
VAR tem =
    CALCULATE (
        MAX ( 'Table2'[NB app] ),
        FILTER ( 'Table2', EARLIER ( 'Table2'[Date] ) > 'Table2'[Date] )
    )
RETURN
    'Table2'[NB app]
        - IF ( tem = BLANK (), 'Table2'[NB app], tem )

 

output.PNG

 

Best  Regards,

Cherry

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

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.