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! Learn more

Reply
Chandrashekar
Resolver III
Resolver III

Lookup Formula

Hello Team,

 

Can you pls help me to get excel formula in Power BI.

Chandrashekar_0-1643704169546.png

Attaching Excel(with formula) and PBIX file:

Excel: Excel File 

PBIX: PBIX File 

1 ACCEPTED SOLUTION

Hello Amit,

 

Thanks. It got resolved.

 

Regards,

Chandrashekar B

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@Chandrashekar , Can you explain what you need.

 

Power bi has lookupvalue and search, find, containssring

https://docs.microsoft.com/en-us/dax/lookupvalue-function-dax

https://docs.microsoft.com/en-us/dax/search-function-dax

 

 

Also, we can search value on column in another column like

new column =

var _col = [columnA] //Current row value

return

maxx(filter(Table, [columnB] =_col ), [ColumnC]) // Search  full column B and return Column C

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

Hello Amit,

 In Excel Sheet1 contains Group, Country code and Country name.

In sheet2 I need formula where formula should search [Group] from Sheet1 -> [Group] Sheet2 and get value from Sheet1(Col B).

 

Regards,

Chandrashekar B

 

@Chandrashekar , These will become two tables in power bi

a new column in table 1 using DAX

 

sumx(filter(Table2, Table2[Group] = Table1[Group]), table2[value])

 

or

 

MAXX(filter(Table2, Table2[Group] = Table1[Group]), table2[value])

 

refer 4 ways to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8

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

Hello Amit,

 

I can able to get result for one set of data but same formula not working for another set where I have short description.

Formula1 =
var searchdesc=Sheet1[short desc]
Return
maxx(filter(Sheet2,containsstring(Sheet2[Keywords],searchdesc)),Sheet2[IType])

 

Regards,

Chandrashekar B

Hello Amit,

 

Thanks. It got resolved.

 

Regards,

Chandrashekar B

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.