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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
DAXHeadroom
Frequent Visitor

Need Help with MAXX

The following measure yeilds the maximum Planned Capacity for all years rather than my intended maximum Planned Capacity for a given / single year. For example, the maximum Planned Capacity for 2023 = 28 and the maximum Planned Capacity for 2024 = 26.  This measure always yeilds 28. Can someone help with what I am doing wrong? Thanks. 

 

Planned Capacity Measure = MAXX(
    SUMMARIZE('Planned Capacity Table','Planned Capacity Table'[Year],
"MAXCapacity",
    MAX('Planned Capacity Table'[Planned Capacity])),
    [MAXCapacity]
)
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @DAXHeadroom ,

 

You can try the following dax:

Planned Capacity Measure =
MAXX(
    FILTER(ALLSELECTED('Planned Capacity Table'),
    'Planned Capacity Table'[Year]=MAX('Table'[Year])),[Planned Capacity])

vyangliumsft_1-1708505460425.png

 

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi  @DAXHeadroom ,

 

You can try the following dax:

Planned Capacity Measure =
MAXX(
    FILTER(ALLSELECTED('Planned Capacity Table'),
    'Planned Capacity Table'[Year]=MAX('Table'[Year])),[Planned Capacity])

vyangliumsft_1-1708505460425.png

 

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

DAXHeadroom
Frequent Visitor

@Jihwan_Kim Thank you for the reply. Unfortunatley, this measure yeilds the same result (28 in the example above). 

 

Below is an example of my table. 

 

The table is related to a Date Table (Weekday to Weekday) and I have Year, Month and Weekday Slicers based on the Date Table. Regardless of selection (or deselection) of any/all Slicers, the result is always 28. 

 

Any help is appreciated. 

 

BaseWeekdayPlanned CapacityWeekday NumberMonthYear
ABCTuesday283January2023
ABCTuesday263January2024
Jihwan_Kim
Super User
Super User

Hi,

Please try something like below whether it suits your requirement.

 

Planned Capacity Measure =
MAXX (
    ADDCOLUMNS (
        SUMMARIZE ( 'Planned Capacity Table', 'Planned Capacity Table'[Year] ),
        "MAXCapacity", CALCULATE ( MAX ( 'Planned Capacity Table'[Planned Capacity] ) )
    ),
    [MAXCapacity]
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.