Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
GarlonYau
Helper I
Helper I

Getting the a "Set" of status change dates related to the order.

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)

GarlonYau_0-1685400027447.png

 

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"

 

GarlonYau_5-1685399802958.png

 

Thank you for your help in advance!

 

 

 

 

 

 

6 REPLIES 6
GarlonYau
Helper I
Helper I

Still looking for assistance on this topic.

GarlonYau
Helper I
Helper I

@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?

GarlonYau
Helper I
Helper I

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? 

Hi @amitchandak, any thoughts on this?

amitchandak
Super User
Super User

@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]) )

Hi @amitchandak, just following up. I think we are almost there.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.