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 Experts
Need a measure to show if a PO Number ID was used in the past and if it was the show the result as shown in the table below...
PO Number | Date | When Used In the Past |
0000039 | 16/12/2021 | |
0000039 | 18/02/2022 | 16/12/2021 |
0000354 | 20/03/2020 | |
0000354 | 17/09/2021 | 20/03/2020 |
Solved! Go to Solution.
@Anonymous
Give this a try.
When Used In the Past =
VAR _CurrentDate = SELECTEDVALUE ('Table'[Date] )
RETURN
CALCULATE(
MAX ('Table'[Date] ),
ALLEXCEPT('Table','Table'[PO Number]),
'Table'[Date] < _CurrentDate
)
@Anonymous
Give this a try.
When Used In the Past =
VAR _CurrentDate = SELECTEDVALUE ('Table'[Date] )
RETURN
CALCULATE(
MAX ('Table'[Date] ),
ALLEXCEPT('Table','Table'[PO Number]),
'Table'[Date] < _CurrentDate
)
@Anonymous
I added one row from my side to check if it works for more than 2 IDs as well
Regards,
Ritesh
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 |
---|---|
104 | |
95 | |
80 | |
67 | |
62 |
User | Count |
---|---|
147 | |
109 | |
107 | |
85 | |
63 |