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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
BI-Leo
Frequent Visitor

Vlookup

Hi Everyone, I tried to transfer fomula Vlookup in Excel to PowerBI Desktop, but I am unable to do so. My aim is to extract column B in 'Group' sheet, here's my formula in Excel '=VLOOKUP(A:A,Group!A:B,2,TRUE)'

2022-09-01_11-04-41.png               2022-09-01_11-05-14.png

I know LOOKUPVALUE there in PowerBI, but it cannot deal with such scenario, so currently I am writing below DAX in PowerBI, but it isn't flexible enough, is there any other approches to solve such scenario? 

2022-09-01_11-12-18.png

Hopefully someone could help, Thank you!

 

 

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @BI-Leo,

It sounds like a segmentation related requirement, you can take a look at the following blog to know how to use DAX expression to achieve these:

Static segmentation – DAX Patterns

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @BI-Leo,

It sounds like a segmentation related requirement, you can take a look at the following blog to know how to use DAX expression to achieve these:

Static segmentation – DAX Patterns

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Thanks a lot bro, what a brilliant idea! I created a  column in Group to find its next row, and then match Group and Data, it works!

BI-Leo
Frequent Visitor

'Data'[No. of Lives] in DAX can treat as column A in Data sheet

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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