Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi, please give me some help.
The column's values are continuous but they were broken by 0.
I need to use the maximum value(58640715) to subtract the earliest value(58636780). Max(turnover)-earliest(value)
Could you please tell me how to filter the earliest value(58636780)?
The columns likes this.
Thanks,
Solved! Go to Solution.
Hi @Bridge ,
Are you trying to calculate the max value and min(except 0) value for the same match_ID?
If so you could try this formula:
column =
VAR _max =
CALCULATE (
MAX ( 'table'[turnover] ),
ALLEXCEPT ( 'table', 'table'[match_id] )
)
VAR _min =
CALCULATE (
MIN ( 'table'[turnover] ),
FILTER ( ALLEXCEPT ( 'table', 'table'[match_id] ), 'table'[turnover] <> 0 )
)
RETURN
_max - _min
If I misunderstood your meaning, please share more details.
Best Regards,
Jay
Hi @Bridge ,
Are you trying to calculate the max value and min(except 0) value for the same match_ID?
If so you could try this formula:
column =
VAR _max =
CALCULATE (
MAX ( 'table'[turnover] ),
ALLEXCEPT ( 'table', 'table'[match_id] )
)
VAR _min =
CALCULATE (
MIN ( 'table'[turnover] ),
FILTER ( ALLEXCEPT ( 'table', 'table'[match_id] ), 'table'[turnover] <> 0 )
)
RETURN
_max - _min
If I misunderstood your meaning, please share more details.
Best Regards,
Jay
Hi,
Show the exact result you are expecting. Also, share data in a format that one can work on
Sorry for my unclear description.
I want to get the result of the maximum value - the earliest value
The Earliest value(58636780) happened on 2022-05-24 00:15:00.000. It's the earliest value that happened on the day.
I use the Max function to find the max value(58640715). But I don't know how to write the function to find the earliest value.
Hi,
Do you want this as a calculated column formula or as a measure in the visual. Share the download link of your PBI file.
I ever used the formula like
MINX(Filter(Table, MIN(DateTime), Turnover),
But it didn't work.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
83 | |
70 | |
60 |
User | Count |
---|---|
150 | |
115 | |
104 | |
89 | |
65 |