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! Learn more
Hello,
I am trying to achieve effect in table below. I already used this measure in another table, however this time I got an unexpected error and I am not sure how to solve it, I would appretiate a ton any idea.
desired outcome = LOOKUPVALUE(
'data'[name],
'data'[value],CALCULATE(MAX('data'[value]),ALLEXCEPT('data','data'[id])),
'data'[id],SELECTEDVALUE('data'[id])
)Error: A table of multiple values was supplied where a single value was expected.
Solved! Go to Solution.
Hi @Anonymous
Create a calculated column or a measure
Column =
VAR max_value =
CALCULATE ( MAX ( 'Table'[value] ), ALLEXCEPT ( 'Table', 'Table'[id] ) )
RETURN
CALCULATE (
MAX ( 'Table'[name] ),
FILTER ( ALLEXCEPT ( 'Table', 'Table'[id] ), 'Table'[value] = max_value )
)
Measure =
VAR max_value =
CALCULATE ( MAX ( 'Table'[value] ), ALLEXCEPT ( 'Table', 'Table'[id] ) )
RETURN
CALCULATE (
MAX ( 'Table'[name] ),
FILTER ( ALLEXCEPT ( 'Table', 'Table'[id] ), 'Table'[value] = max_value )
)
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
Create a calculated column or a measure
Column =
VAR max_value =
CALCULATE ( MAX ( 'Table'[value] ), ALLEXCEPT ( 'Table', 'Table'[id] ) )
RETURN
CALCULATE (
MAX ( 'Table'[name] ),
FILTER ( ALLEXCEPT ( 'Table', 'Table'[id] ), 'Table'[value] = max_value )
)
Measure =
VAR max_value =
CALCULATE ( MAX ( 'Table'[value] ), ALLEXCEPT ( 'Table', 'Table'[id] ) )
RETURN
CALCULATE (
MAX ( 'Table'[name] ),
FILTER ( ALLEXCEPT ( 'Table', 'Table'[id] ), 'Table'[value] = max_value )
)
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.