enter image description hereWhat DAX calculation to calculate the Sales $ Fulfilled where Is Originating Online Sales Store = "Y" and match the Fulfilling Location to Originating Location Meaning, any sales that were fulfilled through the Store, but originated online. In the attached image, the New Measure should be the expectation.
-
Depends. What is your schema, is it one table or do you have a proper star schema. Do you want a measure or a calculated column.Michal– Michal2025年08月16日 22:47:46 +00:00Commented Aug 16, 2025 at 22:47
1 Answer 1
you can try this
Column =
IF (
'Table'[Is Originating Online Sales Store] = "Y",
BLANK (),
MAXX (
FILTER (
'Table',
'Table'[Date] = EARLIER ( 'Table'[Date] )
&& 'Table'[Location Name] = EARLIER ( 'Table'[Orinigating Location Name] )
),
'Table'[Sales Fulfilled]
)
)
answered Aug 18, 2025 at 1:23
Ryan
2,6991 gold badge2 silver badges13 bronze badges
Sign up to request clarification or add additional context in comments.