The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi There, I'm looking for some help on the following query:
I have a set of change log data (I'm using excel to demostrate, but I'll be doing this in PowerBI)
And I'm looking for instructions / steps on how I might be able to create a grouped table that would group it by the "Order Number", and pull the most complete set of "Open" and "Close". See the color coordinated color as my example of the latest "Open/Close Set"
Thank you for your help in advance!
Still looking for assistance on this topic.
@Greg_Deckler I see you're an absolute god when it comes solving challenging problems! May I humbly ask for your thoughts / assistance of this conundrum?
Hi @amitchandak, That's a great start.
A follow up question: How would you accomodate examples such as order number 112? Where it's currently in an open status?
@GarlonYau , You can use group by in power query with min for Open date and max for close date
https://docs.microsoft.com/en-us/power-query/group-by
Summarize in DAX
Summarize(Table, Table[Order Numer], "Open", Min(Table[Open date]) , "Closed", Max(Table[Closed Date]) )
User | Count |
---|---|
69 | |
65 | |
63 | |
55 | |
28 |
User | Count |
---|---|
112 | |
81 | |
65 | |
48 | |
42 |