Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I am hoping this is a fairly easy one and that I am missing something simple.
Goal: Evaluate up to the selected date minus 2 days.
I have two tables, one is a date table "Date" and the other is "SalesOrders"
I have the dax messures:
BranchID | Date | SalesOrderID | Line Number | Status | Total Price |
A | 3/3 | S100 | 1 | Open | 100 |
A | 3/4 | S100 | 1 | Open | 200 |
B | 3/3 | S102 | 1 | Open | 300 |
B | 3/3 | S103 | 2 | Closed | 400 |
C | 3/4 | S104 | 1 | Open | 500 |
C | 3/2 | S105 | 1 | Closed | 600 |
Solved! Go to Solution.
Deduct 2 from the Max Date e.g.
Picking Backlog =
IF(ISBLANK( [Picks Needed]),
BLANK(),
CALCULATE( [Picks Needed],
FILTER( ALLSELECTED('Date'),
'Date'[Date] <= (MAX('Date'[Date]) - 2) )))
Regards
Phil
Proud to be a Super User!
Deduct 2 from the Max Date e.g.
Picking Backlog =
IF(ISBLANK( [Picks Needed]),
BLANK(),
CALCULATE( [Picks Needed],
FILTER( ALLSELECTED('Date'),
'Date'[Date] <= (MAX('Date'[Date]) - 2) )))
Regards
Phil
Proud to be a Super User!
I am sure I tried this and variations of this multiple times before posting this...
thank you
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |