March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi everyone,
I have a table and trying to show Items and there Qty but as items have multiple dates and diffrent qty so i just want one column for each item in that company and there qty on that latest date. I dont need sum of qty i want what was qty an that latest date.
Data table :
Company | Item | Qty | Order By |
Abc | 20009 | 4 | 01/24/23 |
Abc | 20009 | 6 | 02/24/23 |
Abc | 20009 | 3 | 03/24/23 |
Abc | 10009 | 5 | 01/24/22 |
Abc | 10009 | 4 | 02/24/22 |
Abc | 10009 | 9 | 04/24/22 |
Def | 20009 | 3 | 04/24/22 |
Def | 20009 | 5 | 04/25/22 |
Def | 20009 | 8 | 04/26/22 |
Def | 20009 | 7 | 04/27/22 |
Output :
Company | Item | Qty | Order By |
Abc | 20009 | 3 | 03/24/23 |
Abc | 10009 | 9 | 04/24/22 |
Def | 20009 | 7 | 04/27/22 |
Thanks appreciate you help. Please give PBIX if possible. Thanks
@A9kurs You could do this. PBIX is attached below signature.
Qty Measure =
VAR __MaxDate = MAX('Table'[Order By])
VAR __Result = MAXX(FILTER('Table', [Order By] = __MaxDate),[Qty])
RETURN
__Result
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
87 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |