Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
I am attempting to pull the date of the 101 Movement type that comes directly before a 102 movement.
I have no issues determining the Max date for an order # by movement type however cannot for the life of me determine how through DAX to pull the Maximum Date for Movement Type = 101 that comes before the 102 Movement Type. Below is an example of my data.
Thank you
Solved! Go to Solution.
Create a measure with:
a variable that holds the date of the type = 102 record-> _102Date
Return the largest date from the filtered table of type = 101 and PostingDate < _102Date
Create a measure with:
a variable that holds the date of the type = 102 record-> _102Date
Return the largest date from the filtered table of type = 101 and PostingDate < _102Date
User | Count |
---|---|
15 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
31 | |
18 | |
13 | |
7 | |
5 |