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

increament totals by time and work out max

Cust Colum created in my tableMeasure that gives me totalssum b3 to b6 
TimeCOY Planned (Cumulative)Excel does  it this way which I can already do in powewr bi very easywhat am struggling with is I need to work out totals by increasing by 1 each time based on time like this is excel
13:00:00224 1170sum b3 to b6
13:15:00356 1700sum b4 to b7
13:30:00221 2589sum b5 to b8
13:45:00369 5994sum b6 to b9
14:00:00754   
14:15:001245   
14:30:003626   

 

This is my measure for total shipments

 

CoyTotal = calculate (countrows(ItemTracking), search("R***C-Normal*", ItemTracking[Merged],, 0)>0) + calculate (countrows(ItemTracking), search("LD***-Normal", ItemTracking[Merged],, 0)>0) + calculate (countrows(ItemTracking), search("SPUD***-Normal*", ItemTracking[Merged],, 0)>0) + calculate (countrows(ItemTracking), search("SVC***-Normal", ItemTracking[Merged],, 0)>0) + calculate (countrows(ItemTracking), search("R*5*C-MAX_R*", ItemTracking[Merged],, 0)>0)

 

This is my measure that I use to get my max based on the actual hour window, but what I need to check if I had a higher max if the time window was say 13:15 – 14:00

 

COY Hour = MAXX( KEEPFILTERS(VALUES('ItemTracking'[Hour Window])), CALCULATE([CoyTotal]) )

 

3 REPLIES 3
v-chuncz-msft
Community Support
Community Support

@Anonymous ,

 

You may check if the post below helps.

https://community.powerbi.com/t5/Desktop/4-weeks-sales-in-column/m-p/319863#M142375

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi,

 

I tried to see if i could convert what you had suggested but not having much look.

 

Here is my table
newPNG.PNG
My code
Capture3.PNG
My Results below which sums all index, i want it to SUM index 0 -3 based on my values in my count colum. I will also need it to be in a if statement that would work out the values based on index 0-3 then 1-4 then 2-5 and so on to give me a column of totals
 
Capture2.PNG
 
Anonymous
Not applicable

ok, ill take a look thank you

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.