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
Anonymous
Not applicable

Caculated MAX based on time window

Hi

 

How would be possible to use MAX work out the below?  i need to find out the max with calcuation in mind below. I can do this based on a hour window and a 15 min window but i need to find out what the MAX is if we had the calcutaion in mind below. So for example if it was 10:45  to 11:45

 

 timecoy  
A22-00619121317this adds A,B,C and D
B22-15548420242this adds B,C,D and E
C22-30119815943 
D22-45844416256 
E23-0051169323 
F23-1511856058 
G23-3015114873 
H23-4515113362 
I19-0818511951 

 

Below you can see that it shows max for 15m which is 4171 and the hour which shows 15612 but i need to work out MAX based on 15 minute, so instead of every hour i need to work out each 15 minute window by just increaseing by 1 like 10:15 - 11:15 and seeing if that has a higher max.

 

throu.png

 

This is also the code i use to get the MAX hour by using a slicer

 

Max per Hour Window =
MAXX(
    KEEPFILTERS(VALUES('ItemTracking'[Hour Window])),
    CALCULATE([Normal])
)

 

 

2 REPLIES 2
v-juanli-msft
Community Support
Community Support

Hi @Anonymous

Could you show an example of 'ItemTracking'[Hour Window], [Normal]?

Where is the last column used?

 

Based on my understanding, you want to show 10:15, 10:30, 10:45, 11:00, 11:15.... in the Axis, the the max value (in A, B, C...) per time period in the Y-axis.

Right?

 

Best Regards

Maggie

Anonymous
Not applicable

My issue is that can not work out a Max between each 15 minute window against and hour so for example:

 

10:00 - 11:00 i can work this out but what if the max was higher in this time wndow 10:15 - 11:15 this is what i need to know. This can be done very easy in excel but can not get my head round it in Power BI

 

Sorry this very hard to explain..

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.

Top Solution Authors