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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Anonymous
Not applicable

Lookup for multiple columns and multiple values

I have tables like this:

 

Cat

YearCatTypeBudget
2019ANew275
2020BNew200
2021CNew250
2019ARet275
2020BRet200
2021CRet250
2019AUsed275
2020BUsed200
2021CUsed250
   

 

Budget

YearCatBudget
2020A100
2020B200
2020C150
2021A200
2021B225
2021C250
2019A275
2019B300
2019C325

 

I need to get column Budget in first table. I read solutions for lookupvalue formula for multiple columns but it only works for single values, and when I make a merge directly in the transformation data process, it sums the budget in the report view. Please help.

 

Basically is a double lookupvalue by year and cat, that provides multiple values.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Create a new column in Cat table

sumx(filter(Budget, Budget[Year] =Cat[Year] && Budget[cat] =Cat[Cat]),Budget[Budget])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
ryan_mayu
Super User
Super User

@Anonymous 

if you want to use lookupvalue,you can try this.

Column = LOOKUPVALUE(budget[Budget],budget[Cat],'cat'[Cat],budget[Year],cat[Year])

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




amitchandak
Super User
Super User

@Anonymous , Create a new column in Cat table

sumx(filter(Budget, Budget[Year] =Cat[Year] && Budget[cat] =Cat[Cat]),Budget[Budget])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors
Top Kudoed Authors