Forum Discussion

rexeubank's avatar
rexeubank
Frequent Visitor
6 years ago
Solved

Sales Data Pre/Post a Specific Date

Hello,   I'm having trouble with a calculated column. I am trying to see sales data 3 weeks prior and post-visitation to a store so I can compare with the week that the store is visited.   I have...
  • v-diye-msft's avatar
    v-diye-msft
    6 years ago

    Hi rexeubank 

     

    The claculated column can't be changed by the other table's filter. I believe you can achieve this by changing it to the measure as below:

    Measure = SUMX(
            FILTER(
                ALLSELECTED('Sales'),
                AND(
                    'Sales'[Week Number] = MAX('Combined Recaps'[WM Week]),
                    'Sales'[Store Number] = MAX('Combined Recaps'[Retail ID])
                )
            ),
            'Sales'[Sales]
        )