Forum Discussion
Sales Data Pre/Post a Specific Date
- 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] )
I apologize for the vagueness. Maybe this can help:
Below is my data.
On the top, I have the visitation export (what stores were visited and when). This is where the calculated columns are located.
On the bottom is the sales data. I match the week numbers and the store numbers (Retail ID/Store Number) and sum the sales data based on those two criteria.
And the calculated column code for easier viewing.
I need to get the weekly sales into a format where I can filter them by the Brand & Type from the Sales tab.
Current Week =
SUMX(
FILTER(
'Sales',
AND(
'Sales'[Week Number] = 'Combined Recaps'[WM Week],
'Sales'[Store Number] = 'Combined Recaps'[Retail ID]
)
),
'Sales'[Sales]
)
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]
)