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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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