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
zl34567
Regular Visitor

Sum the Value By Day and Return The Max Number Over DataSet

Hi All,


Im trying to sum the No. of Staff of a Date on a specific Date and then secondly trying to get it to return the Max Number. 
I have a DateTable to combine two data sets one for Availablity and the other for forecast.

 

zl34567_0-1713239594205.png

 

Im trying to get it to return the MAX number on either the required number or the Ave per Week so that the scaling will match. Currently as it is it is causing confusion.

 

zl34567_1-1713239678317.png

 

Thanks in Advance

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @zl34567 
The Max/Min value of the chart Y axis / secondary axis is evaluated outside the filter context of the visual itself. Hence, it needs to be created inside the measure. Plerase try:

MaxMeasure =
MAXX ( VALUES ( 'Table'[Date] ), MAX ( [Required Staff No.], [Ave Per Week] ) )

View solution in original post

1 REPLY 1
tamerj1
Super User
Super User

Hi @zl34567 
The Max/Min value of the chart Y axis / secondary axis is evaluated outside the filter context of the visual itself. Hence, it needs to be created inside the measure. Plerase try:

MaxMeasure =
MAXX ( VALUES ( 'Table'[Date] ), MAX ( [Required Staff No.], [Ave Per Week] ) )

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.

Top Solution Authors