Forum Discussion

federico_fenu's avatar
federico_fenu
Frequent Visitor
1 year ago

data between different years

Hi all,

i have this table in excel about the turnover of a store, in excel the problem is that when i am in the weeks across 2 years (see the pic) i don't see the data of the year before, for example week -2,-1 and 0 should be 50, 51, and 52 ( according to our commercial calendar.

This way the turnover for 2024 compares the same weeks of 2023 and the turnover of 2023 with the same weeks of 2022.

Any way of set this in power bi?

 

3 Replies

  • Hi federico_fenu 

    Without seeing the structure of the data it would be hard to be sure.

    My guess is the cell 2024(c), Week -2 has two filters that clash on it. 

     

    I assume Calendar[Week] is a column in your calendar table.

    This joins via Calendar[Date] to your DataTable[Date].

    When you filter the Calendar[Week] = -2 and Calendar[Year] = 2024 you are removing the 2023 data.

     

    Does that sound correct?

    If so you will need tweak your measure to change the Calendar[Year] filter.