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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.