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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Learner_SG
Helper IV
Helper IV

Select the 4 highest values from 2 days and different time intervals.

Hi,

could help me on this matter pls. I have a summarized table as shown below. I need to select the 4 highest value from last 6th and 7th day and from each time intervals. The maximum water consumed from each time interval is chosen .So the highlighted values in the 2nd image will be the one that need to be selected. I have attached a sample data.

Learner_SG_0-1652848300325.png

Learner_SG_1-1652848176684.png

https://docs.google.com/spreadsheets/d/13j1zsIoI9CMrGhfMHV9aMfSVcRT9lgVy/edit?usp=sharing&ouid=10671...

 

1 ACCEPTED SOLUTION
sturlaws
Resident Rockstar
Resident Rockstar

Hi, @Learner_SG,

I think the answer for your question can be found here:
Filtering the Top 3 products for each category in Power BI - SQLBI

 

I have made an example based on the data you provided:
example 

 

Cheers,
Sturla

If this post helps, then please consider Accepting it as the solution. Kudos are nice too.

View solution in original post

1 REPLY 1
sturlaws
Resident Rockstar
Resident Rockstar

Hi, @Learner_SG,

I think the answer for your question can be found here:
Filtering the Top 3 products for each category in Power BI - SQLBI

 

I have made an example based on the data you provided:
example 

 

Cheers,
Sturla

If this post helps, then please consider Accepting it as the solution. Kudos are nice too.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors