Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Pre l Post Event Filtering and Calculations based on user selected criteria

Hi Everyone,    Relatively new to PBI and I am attempting to create a sales dashboard using the last 52 week sales data by week, and I need to provide visibility into the sales data separated into ...
  • v-kkf-msft's avatar
    5 years ago

    Hi Anonymous ,

     

    Do you want to display the data of 202102 and 202104 when you select 202103? 

     

     

    If so, you need to create a new table, and then use the following measure.

     

    Measure = 
    CALCULATE(
        SUM('Table'[Sales]),
        FILTER(
            'Table',
            'Table'[Week] in { MAX('WeekNum'[Week]) - 1, MAX('WeekNum'[Week]) + 1 }
        )
    )

     

    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

    Best Regards,
    Winniz

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.