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
Hi there - referencing the example data above, I'm trying to create the 'desired output' as a dashboard visual using measures (instead of PowerQuery or calculated columns).
I started with this measure:
HasSPCC = LOOKUPVALUE(Plans[PlanTypeCode],Plans[FacilityId],SELECTEDVALUE(Facilities[FacilityId]))
Translated to English, I'm Facilities [FacilityID] within Plans [FacilityID] column and returning result Plans [PlanTypeCode].
I get this error: "ERROR: A table of multiple values was supplied where a single value was expected."
I assume it's because Plans [FacilityID] is not unique (there can be several different plans for each facility - see yellow highlights).
Based on that, I assumed that wrapping the measure in a CALCULATE function would work. I tried these two, with no luck:
Solved! Go to Solution.
Hi @tomascid
create a relationship between the two tables. Use a matrix visual.. place Facilities[Facility ID] in the rows of the matrix. Place Plans[PlanTypeCode] in the columns of the matrix and place the following measure in the values of the matrix
Count = COUNTROWS ( Plans )
Solved! https://community.powerbi.com/t5/Desktop/LookupValue-with-Filter/td-p/993672
Just need to use the second lookup parameters of LOOKUPVALUE:
Hi, @tomascid
You can try the following methods.
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @tomascid
You can try the following methods.
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Solved! https://community.powerbi.com/t5/Desktop/LookupValue-with-Filter/td-p/993672
Just need to use the second lookup parameters of LOOKUPVALUE:
Hi @tomascid
create a relationship between the two tables. Use a matrix visual.. place Facilities[Facility ID] in the rows of the matrix. Place Plans[PlanTypeCode] in the columns of the matrix and place the following measure in the values of the matrix
Count = COUNTROWS ( Plans )
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.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 11 | |
| 8 | |
| 8 | |
| 8 |