Forum Discussion
DAXHeadroom
2 years agoFrequent 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 ...
- Anonymous2 years ago
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])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.
Jihwan_Kim
Super User
2 years agoHi,
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]
)