Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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
User | Count |
---|---|
21 | |
14 | |
11 | |
8 | |
5 |
User | Count |
---|---|
24 | |
22 | |
20 | |
15 | |
10 |