Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Personalized Date Table Weeks with Index

Hello , i have to build a report , from data wich is manually asign the week (no date column , and sometimes with 6 weeks)  That makes impossible use a date table  I figured to use a index table an...
  • v-yanjiang-msft's avatar
    4 years ago

    Hi Anonymous ,

    According to your description, you want to get the last week's actual by the week index filter, here's my solution.

    This is my sample data.

     

    This is my measure.

    Measure = 
    CALCULATE (
        MAX ( 'Table'[Actuals] ),
        FILTER ( ALL ( 'Index' ), 'Index'[ORDER] = MAX ( 'Index'[ORDER] ) - 1 )
    )
    

    Get the expected result.

    I attach my sample below for reference.

     

    Best Regards,
    Community Support Team _ kalyj

     

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