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

Help needed: Calculate the MAX of SUMMED values

Hi All,

 

To start off, my sql and DAX skills are not advanced.

 

I am working with data from the fulfilment area of a bank.

 

Thousands of applications come in daily and the database is saving the history of each move as the work item moves through queues.

We are calculating the man power needed to work each queue per day and per month.

 

The way I have worked out the daily resources needed is by assigning each queue a Resources Required figure.

To work out the daily resources required, I sum the Resources Required figure per queue to give me the total needed per day.

 

This works perfectly for a daily view.

I can clearly see the theoretical amount of resources needed per day.

 

Now, when I drill up to monthly, I can only see the sum of all of the days in the month which gives a figure which is far too large.

 

For example (pretending only 3 days in a month): Day 1- 20 people needed, Day 2 - 30 people needed, Day 3 - 25 people needed.

 

When I drill up to monthly and sum is selected, the total is 75 which is far too large.

And when I select max it will give me an extremely small figure such as 0.02 (largest of the small figures used to get the sum of 20, 30 or 25 as in the example above).

 

My goal is to display the max of the daily summed values in the monthly view.

So with regards to the "example" above, I would like the Day 2 figure of 30 to display as the max for the month - the largest summed daily value shoudl reflect as the max on the monthly view.

 

Please assist and try keep your answers as basic as possible 🙂

 

Read many other threads and they're a bit too advanced for me.

 

Thanks!

 

 

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable
6 REPLIES 6
v-huizhn-msft
Employee
Employee

Hi @Anonymous,

It's difficult to reproduce your scenario based on your description? Is there any chance to share your sample data table and list exected result in details, so we can post the solution which is close to your requirement. Thanks for understanding.

Best Regards,
Angelia

Anonymous
Not applicable

Don't know how to attach a spreadsheet.

 

For example:

 

Just say I have multiple line items for every day of the month and when I build a graph I select my values as a sum.

 

Day 1: 5min, 10 min, 5 min. sum = sum 20 min

 

Day 2: 2 min, 10 min, 5 min = sum 17 min

 

Day 3: 10 min, 10 min, 20 min = sum 40 min

 

when looking at it daily, the sum amounts per day is what I want.

But when I drill up to monthly and sum is selected itll show 77 min. (which is not what I'm looking for).

If i Select max for the monthly view it will show 20 min (the largest daily value).

 

I want the max value to show the largest sum of the daily values which would be the sum of day 3 = 40 min.

Anonymous
Not applicable

My biggest problem is that the MAX function can only accept a column and not a measure.

So i cannot write a function as MAX(SUM(values).

 

My goal is to sum the daily values into a summed value per day and then for the monthly view show the MAX of the summed values per day.

Anonymous
Not applicable

Anybody done this before?

Anonymous
Not applicable
Anonymous
Not applicable

Bump: please help

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.