Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

filtering average using another table

Hello,

I need to make a average filterig with another table.

 

[x] Tables have relationships
[x] one date is type string and the another is type number.

 

table 01

idmat |mat  |classmat 
01  |name01 |I
02  |name02 |II
02  |name03 |IV
03  |name04  |NC

 

table 02

idmatqtdret
0123
0233
0334

 

I tried this, but not worked  because I would like a table with the classmat "I, II,IV": 

 

CALCULATE(
AVERAGEX('table02', table02'[qtdret]), FILTER(table01,table01[classmat] = {"I","II", "IV"}))
6 REPLIES 6
Anonymous
Not applicable

I just filter my table to show only the classmat I, II, III and IV. 

Other way  is use the measure lookupvalue in the table 02.

vapid128
Solution Specialist
Solution Specialist

I test one more time,

That should be no problem.

 

Can you upload the file?

Anonymous
Not applicable

Didnt worked...
Error: A table of multiple values was supplied where a single value was expected

@Anonymous you can PM me now and we could do a quick zoom to look together if you want

vapid128
Solution Specialist
Solution Specialist

image.png

 

Measure = CALCULATE(AVERAGE(Table02[qtdret]),FILTER(Table01, Table01[classmat] in {"I","II", "IV"}))
Anonymous
Not applicable

Didn't work...

Error: A table of multiple values was supplied where a single value was expected

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.