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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.