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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
mrcss23
Advocate IV
Advocate IV

PRODUCT and VLOOKUP in DAX power bi

Hi. I have imported two tables in power BI.

Table 1 has values for several employes.

Table 2 has a rate for each employee.

I would like to SUM the result of product VALUE (table 1)* Rspective RATE (table 2).

In Excel I use PRODUCT and VLOOKUP,

The final result should be total of that column (126, 91 in the example below)

 

What should be the DAX in POWER BI?

Thank you!

Captura de ecrã 2022-09-22 183152.png

1 ACCEPTED SOLUTION
mrcss23
Advocate IV
Advocate IV

I just found a way!!!
 
Result = SUMX('Table 1','Tavle1'[VALUE]*RELATED('Table 2'[Rate]))

View solution in original post

3 REPLIES 3
mrcss23
Advocate IV
Advocate IV

I just found a way!!!
 
Result = SUMX('Table 1','Tavle1'[VALUE]*RELATED('Table 2'[Rate]))
Greg_Deckler
Super User
Super User

@mrcss23 There is an equivalent PRODUCT function in DAX, although you can just use *. Also there is PRODUCTX. For VLOOKUP either use LOOKUPVALUE or MAXX(FILTER(...),...)


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

I know the fuctions but I am not being able to achieve the result. Any suggestion?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.

Top Solution Authors