Forum Discussion
Need help solving a practical FIFO issue, DAX measure or calculated column
- 7 years ago
Hi Anonymous ,
Try the following measure:
Last_date = VAR Last_Date_Calculation = CALCULATE ( MAXX ( 'Table'; 'Table'[Production Date] ); FILTER ( ALL ( 'Table'[Posting Date] ); 'Table'[Posting Date] < MAX ( 'Table'[Posting Date] ) ); ALLEXCEPT ( 'Table'; 'Table'[Item No]; 'Table'[Entry Type] ) ) RETURN IF ( Last_Date_Calculation = BLANK (); ""; Last_Date_Calculation )Regards,
MFelix
The works well as a measure, but is affected by a slicer. It does not perform within the context I was hoping. Is it possible to perform the same function using a calculated column, so I can simply pull it into a table row-by-row? In this case, it would compare against all of the other shipments of that item across the entire table's history.
Hi Anonymous ,
What is the context you were expecting? The measure can be change to overcome the slicer context.
Regards,
MFelix
- Anonymous7 years agoNot applicable
MFelix ,
I was able to modify my approach to make use of the formula you provided - thank you!
MCKery
- v-cherch-msft7 years ago
Microsoft Employee
Hi Anonymous
Glad to hear you've solved it, please accept the helpful reply as solution, that way, other community members will easily find the solution when they get same issue.
Regards,