Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

Date slicer advanced sync

Hi all,   I am currently working on a Power BI report and need a little bit of assistance in regards to a date slicer.   So I am looking at sales of items and want one of my tabs to be a selected...
  • Jihwan_Kim's avatar
    1 year ago

    Hi,

    I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.

    Please check the below picture and the attached pbix file.

     

     

     

     

    Sales: = 
    SUM( sales[sales] )

     

     

    Sales 3 weeks prior: = 
    CALCULATE (
        [Sales:],
        'calendar'[date]
            >= MIN ( 'calendar'[date] ) - 27,
        'calendar'[date]
            <= MAX ( 'calendar'[date] ) - 27
    )