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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Yrstruly2021
Helper V
Helper V

Replicate VLOOK Or Similiar In Powerbi

To get the "Category" field as it is displayed in the Pivot table(sheet 5), i do a vlook in excel. With sheet 3, columns A, B with sheet 1. Vlookup Formula - =VLOOKUP(C4;Sheet3!A:B;2;0) 

Excel sheet:https://drive.google.com/file/d/1RuGYLbC7zj0XR22cTdHRwNk6PPuAyqNW/view?usp=sharing 

 

How do i replicate this in Powerbi?

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@Yrstruly2021 

is this what you want?

Column = LOOKUPVALUE('Sheet3'[Column2],Sheet3[Column1],Sheet1[SKUs])

please see the attachment below





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

Proud to be a Super User!




View solution in original post

6 REPLIES 6
Yrstruly2021
Helper V
Helper V
dobregon
Impactful Individual
Impactful Individual

@Yrstruly2021  you can use the CALCULATE function.

 

Calculated column = CALCULATES(MAX(yourcolumn), FILTER(tablewhereyouwanttotakevalue, thistable[columntojoin1] = tablewhereyouwanttotakevalue[columntojoin1]))

 


tell us if this works for you




Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
ryan_mayu
Super User
Super User

@Yrstruly2021 

is this what you want?

Column = LOOKUPVALUE('Sheet3'[Column2],Sheet3[Column1],Sheet1[SKUs])

please see the attachment below





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

Proud to be a Super User!




Thank you, this is exactly what i want. How do i get my months in the columns as in this example? https://drive.google.com/file/d/1QwfV0DWBc_5B68K45g-fT6Z1DjiXsLHY/view?usp=sharing

@Yrstruly2021 

use matrix visual and put month column in the columns field

1.PNG





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

Proud to be a Super User!




jdbuchanan71
Super User
Super User

In your model you join the two tables together on the SKU field then add the category field to your visual.  No need to move the category over to the sales table.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors