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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
alice25
Regular Visitor

Group by

Hi everyone,

I am struggling with grouping the below set of data:

 

1) Firstly, I want to group the highlited columns. My final result should be: one row with date and total amounts for both columns

 

alice25_0-1672242951875.png

2) Secondly, I need to group the backlog - need to receive the last value from the last row (31143).

Does anyone know how to solve this?

Thank you!

 

 

1 ACCEPTED SOLUTION

Hi @alice25 

 

Here you go:

 

AnkitKukreja_0-1672248138935.png

 

Attaching the file for your reference.

 

For Power BI trainings or support dm or reach out to me on LinkedIn.
If my response has successfully addressed your question or concern, I kindly request that you mark this post as resolved. Additionally, if you found my assistance helpful, a thumbs-up would be greatly appreciated.

Thanks,
Ankit Kukreja
www.linkedin.com/in/ankit-kukreja1904
https://topmate.io/ankit_kukreja

View solution in original post

5 REPLIES 5
AnkitKukreja
Super User
Super User

Hi @alice25 

 

It would be great if you can share the sample data with me and the expected output.

For Power BI trainings or support dm or reach out to me on LinkedIn.
If my response has successfully addressed your question or concern, I kindly request that you mark this post as resolved. Additionally, if you found my assistance helpful, a thumbs-up would be greatly appreciated.

Thanks,
Ankit Kukreja
www.linkedin.com/in/ankit-kukreja1904
https://topmate.io/ankit_kukreja

Hi Ankit,

 

Sample data:

Last date of the weekIncomingShipmentBacklog
12/25/2201291.0325237
12/25/220025237
12/25/22nullnullnull
12/25/220025237
12/25/22014573.5326528
12/25/220031143

 

Expected:

Last date of the weekIncomingShipmentBacklog
12/25/22015864.5631143

 

Thank you!

Hi @alice25 

 

Here you go:

 

AnkitKukreja_0-1672248138935.png

 

Attaching the file for your reference.

 

For Power BI trainings or support dm or reach out to me on LinkedIn.
If my response has successfully addressed your question or concern, I kindly request that you mark this post as resolved. Additionally, if you found my assistance helpful, a thumbs-up would be greatly appreciated.

Thanks,
Ankit Kukreja
www.linkedin.com/in/ankit-kukreja1904
https://topmate.io/ankit_kukreja

Hi Ankit,

 

Thanks! There is one issue with backlog value - it will not be always max value.

 

Please find below the example:

Last date of the weekIncomingShipmentBacklog
12/18/225036.31031782
12/18/220031143
12/18/2201988.0231143
12/18/220026746
12/18/220026746

 

Expected:

Last date of the weekIncomingShipmentBacklog
12/18/225036.311988.0226746

 

Hi @alice25 

 

Not possible with group by as we can choose either max, min, sum, avg, count etc with the group by.

 

For Power BI trainings or support dm or reach out to me on LinkedIn.
If my response has successfully addressed your question or concern, I kindly request that you mark this post as resolved. Additionally, if you found my assistance helpful, a thumbs-up would be greatly appreciated.

Thanks,
Ankit Kukreja
www.linkedin.com/in/ankit-kukreja1904
https://topmate.io/ankit_kukreja

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.