Forum Discussion

SCNCKS1's avatar
SCNCKS1
Icon for Helper I rankHelper I
3 years ago
Solved

Previous Weeks Data with date slicer

Hi - I am creating a line chart that is supposed to show - screen shot of what my report looks like is below along with a table showing there should be at least 1 point green and orange.

   - data from the previous week

  - data from week before the previous week

  - data year to date.

 

The code i am using is:

Value Current Week =
    CALCULATE(
        [Value/DAY],
        FILTER(ALL('Date'), 'Date'[Week Rank] = Max('Date'[Week Rank]) - 1))
 
Slicer is Year/Month/Day
There is data, i have confirmed. My report has data through 7/30/2023 which is week 31. Any assistance would be much appreciated.
 
 

 

 

  • Hi Foodd - the powerbi file is attached to the SharePoint data, which is sensitive, i am not able to post the data online. 

3 Replies