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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

summarize columns by group without blank

Hello,

 

This is what my data set looks like: Capture.PNG

 

the sensors are measured every few milliseconds (Timestamps in epoch), Now they all fall in the 10-second bin but the timestamps are slightly different. What I want to achieve is that the blanks are gone, so that the date + time is no longer displayed multiple times , but just once every 10 seconds with all the correct values ​​behind it(without null).

 

Does anyone know the right approach to do do this?

 

Thank you

1 ACCEPTED SOLUTION

As the others have suggested, grouping will mostly work but you will need to select advanced and choose the aggregation you want for each column (SUM, MAX, COUNT) for the TRUE/FALSE column this might be a bit tricky. 

 

Do the sensors always report in the same order? If Sales is always the last of the 10min, you could go into the Power Query/Transform Data and add a conditional column to mark that as the row to keep (IF Sales <> null then "Keep" Else "Remove") and then use the Fill Down option on all four sensor columns to replace the blanks. Finally filter the table for the new conditional column = "Keep"

 

Has this post solved your problem? Please mark it as a solution so that others can find it quickly and to let the community know your problem has been solved. 

 

If you found this post helpful, please give Kudos.

I work as a trainer and consultant for Microsoft 365, specialising in Power BI and Power Query. 

https://sites.google.com/site/allisonkennedycv


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@Anonymous , Not sure I got it. See if this can help

https://www.poweredsolutions.co/2019/07/30/grouping-rows-with-power-bi-power-query/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thank you for your response,

 

To make my problem clear, I made an example in excel:

This is what my data set looks like in powerBI:

Final.PNG

So I have multiple measurements of certain elements within my 10 minutes, But I can't really compare them in 10 min bins because of the blanks.

 

This Is how I would like to see it: 

bal.PNG

 

So I want to sort it by 10 min bins ignoring the blanks.

 

I hope this makes it more clear for you.

Thanks

As the others have suggested, grouping will mostly work but you will need to select advanced and choose the aggregation you want for each column (SUM, MAX, COUNT) for the TRUE/FALSE column this might be a bit tricky. 

 

Do the sensors always report in the same order? If Sales is always the last of the 10min, you could go into the Power Query/Transform Data and add a conditional column to mark that as the row to keep (IF Sales <> null then "Keep" Else "Remove") and then use the Fill Down option on all four sensor columns to replace the blanks. Finally filter the table for the new conditional column = "Keep"

 

Has this post solved your problem? Please mark it as a solution so that others can find it quickly and to let the community know your problem has been solved. 

 

If you found this post helpful, please give Kudos.

I work as a trainer and consultant for Microsoft 365, specialising in Power BI and Power Query. 

https://sites.google.com/site/allisonkennedycv


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

In the query editor, just click on the Group By button and choose your bin column with a sum aggregation.

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

This is what I did:

ccc.PNG

But the date bins are still duplicated:

ddd.PNG

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.