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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.