Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 5 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 15 | |
| 12 | |
| 10 |