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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
KristinaSp
Helper I
Helper I

Sum of max values per category and type and selected date

Hello,

 

I need to calculate sum of max values per category, type and selected date (year, month, day, specific period - I have directly related calendar table).

I have tried to do it with summarize function, but it didnot wortk flexibly with calendar.

 

Could you help me with this task? Thank you in advance

 

Data example:

 

DateCategoryTypeValue
2022-10-01A1st10
2022-10-02A1st11
2022-10-03A2st12
2022-11-10B2st14
2022-11-03B1st9
2010-10-04B1st2
2022-10-03A1st10
2022-10-01B2st16
2022-10-02A2st18
2022-11-03B2st8
2022-11-03C2st7
2022-11-03C1st3
2022-10-01C1st4
1 ACCEPTED SOLUTION
Nofil098
Resolver I
Resolver I

Nofil098_0-1669200288342.png

Measure = Max(main[value])
If your problem is resolved then do hit the like.

 

View solution in original post

4 REPLIES 4
Nofil098
Resolver I
Resolver I

Nofil098_0-1669200288342.png

Measure = Max(main[value])
If your problem is resolved then do hit the like.

 

KristinaSp
Helper I
Helper I

Additional coment, for example:
if i use slicers:
date: october
type: 1st
 the sum of max values would be:
A category max = 11
C category max = 4
Sum of max: 11+4 = 15

dateCategoryTypeValue
2022-10-01A1st10
2022-10-02A1st11
2022-10-03A1st10
2022-10-01C1st4

 

menglaro78
Employee
Employee

HI @KristinaSp ,

try with this, if I understand yout question

Measure = CALCULATE(MAX(TableTest[Value]), all(TableTest[Type]))
 
Marco
 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!

Unfortunately, this formula does not work for me. I have added additional comment about expected result.  maybe you could check and will have an idea how to wirte the formula. Thank you for your help!

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.