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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
jbenson
Helper III
Helper III

VALUELOOKUP

I think VALUELOOKUP is what i am wanting to use. I am trying to pull a freight rate column from one table and put those values into another table. 

Total Freight = LOOKUPVALUE(LoadTrackingData[Driver],LoadTrackingData[TotalFreightRate],'DRIVER BONUS'[Driver]) here is the formula i am using. but i get an error. i am wanting to show the values of total freight from the load tracking table in the driver bonus table. 
7 REPLIES 7
vojtechsima
Super User
Super User

Hi, @jbenson 
If you wanna find Total Freight, you have to write it like this:

 LOOKUPVALUE(LoadTrackingData[TotalFreightRate],LoadTrackingData[Driver],'DRIVER BONUS'[Driver])

i get an error that says a table of multiple values was supplied where a single value was expected

@jbenson 

pls check the data ,i think there is a one to many relationship.

could you pls provide the sample data?





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

Proud to be a Super User!




i removed any relationships i had, but i still got the same error. What i am trying to accomplish is take the payroll % from table the driver bonus and divide by the freight rate from the load tracking table, i need to do this on a per row basis so its by each driver.  i do the add column and try and divde the payroll % by the total freight rate but i get the same value for each row. I am not sure if my date columns are messing me up because one has the date by the week on the driver bonus table and the load tracking table is a date by each day? i have uploaded the snap shots of the two tables 

Driver Bonus.pngload tracking.png

@jbenson 

could you pls provide the sample data and expected output?





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

Proud to be a Super User!




DATEHOURSBASE PAYTOTAL PAYROLLPAY % INCOMEDRIVER
3/26/202269.512=ROUND(IF(B15>40,(((B15-40)*1.5)+40)*C15,C15*B15),2)=sum total payroll/freight incomeSMITH
3/19/20226212=ROUND(IF(B15>40,(((B15-40)*1.5)+40)*C15,C15*B15),2)=sum total payroll/freight incomeSMITH

 

DATEFREIGHT RATEDRIVER
3/25/2022175SMITH
3/24/2022150SMITH

 

So here is how it laid out the hours are totaled by the week and trucking is by the day. Our weeks go Sunday to Saturday. here is how the excel sheets are laid out 

@jbenson 

still not quite understand your request. 

You have two tables. First table has three columns: date, hours, base pay

second table has three columns: date freight rate, driver

you want to get the last three columns of first table?

what's the expected output?

is the total payroll below correct? 

1.PNG

how to get the freight income?





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

Proud to be a Super User!




Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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