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
browna6
Frequent Visitor

Calculating the date value and the difference one date back (Classed as week v week?)

Hi

 

I am looking to find at what the increase in value is (and percentage) to the previous date in my date column.

 

I would class it as a week on week difference - however, i only have the Monday date each week available.

 

Is this possible? The table below is some example data - i am trying to achieve the outcomes withi the 'Week on Week Difference' column and the & Difference column

 

Thank you in advanced

 

DateValueWeek on Week Difference% Difference
27/02/202349246997  
06/03/202348361947-885050-1.8%
13/03/202337187599-11174348-23.11%
20/03/202345926791873919223.5%
27/03/202345581085-345706-0.75%
1 REPLY 1
Alf94
Solution Supplier
Solution Supplier

Hi @browna6 ,

 

Could you please try the following measure for the week over week difference?

 

 

Week on Week Difference = 
    VAR prevValue =
        CALCULATE(
            SUM( Table[Value] ),
            OFFSET(
                -1,
                ORDERBY( Table[Date] , ASC )
            )
        )
    RETURN
        IF(
            NOT( ISBLANK( prevValue ) ),
            CALCULATE(
                SUM( Table[Value] ) - prevValue
            )
        )

 

 

Do not forget to replace "Table" with the correct name of your table. For the percentage, I wrote the following but do not find the same result as you (except for first and last value). Could you explain your calculation?

 

 

Difference % = 
    CALCULATE(
        DIVIDE(
            [Difference],
            SUM( Table[Value] )
        )
    )

 

 

Capture d’écran 2023-04-13 144400.png

 

Thanks,

 

If my solution is correct, please mark it as a solution to help people with the same question as you in the future.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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