Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Ok, maybe I'm dumb, but what could be wrong with this measure? I'm trying to get the max value and ignore the time filter.
Max difference =
VAR table_x =
ADDCOLUMNS (
'Hourly calendar',
"input", [Input measure],
"output", [Output measure]
)
VAR max_difference =
CALCULATE ( MAXX ( table_x, [input] - [output] ), ALL ( 'Hourly calendar' ) )
RETURN
max_difference
Solved! Go to Solution.
Once you define a variable, it's fixed and will not be modified by CALCULATE adjusting filter context.
See if this works better:
Max difference =
VAR table_x =
ADDCOLUMNS (
ALL ( 'Hourly calendar' ),
"input", [Input measure],
"output", [Output measure]
)
VAR max_difference = MAXX ( table_x, [input] - [output] )
RETURN
max_difference
Once you define a variable, it's fixed and will not be modified by CALCULATE adjusting filter context.
See if this works better:
Max difference =
VAR table_x =
ADDCOLUMNS (
ALL ( 'Hourly calendar' ),
"input", [Input measure],
"output", [Output measure]
)
VAR max_difference = MAXX ( table_x, [input] - [output] )
RETURN
max_difference
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
13 | |
11 | |
10 | |
10 |