cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
momforrest
Regular Visitor

Client Rates vs. Default Rates

I have two tables.  The first is employee name, date work was completed, client name, client rate (the rate we charge the client) and hours worked on that client.  This is millions of rows of data for every day of the year, for every 1/4 hour of work going back 10 years.

 

Original Data.jpg

I want to determine how much of a discount the client is getting, by employee, based on the year when the work was completed.  

 

My second table has the non-discounted rates, by employee by year.

Default Rate.jpg

Any recommendations on how to best accomplish this?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Re: Client Rates vs. Default Rates

Himomforrest,

You could create a calculated column like below

default value =
LOOKUPVALUE (
    T2[defaultvalue],
    T2[name], t1[name],
    T2[Year], YEAR ( t1[DATE] )
)

Then you could try to use  measure like below to calculate climet rate or deault rate *hour

Measure = sum(t1[ClientRate])*sum(t1[Hours])

369.PNG

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
Community Support
Community Support

Re: Client Rates vs. Default Rates

Hi momforrest, 

I am not clear about your requirement. If possible, could you please explain "I want to determine how much of a discount the client is getting, by employee, based on the year when the work was completed." for me? How to calculate client rate? If you want to calculate difference between two table, you could create relationship between two tables on [Name], then create meausre like = min

[cliemnt rate]-min[default rate] to see whether it work or not.

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Highlighted
momforrest
Regular Visitor

Re: Client Rates vs. Default Rates

Thank you for the response @dax .

 

I am trying to figure out how to apply the default rate to a line item where it says if NAME=ASMITH and YEAR=year in DATE.

 

If I were to do this in Excel, I could create some simple INDEX, MATCH formulas to drop in the Default Rate but I can't seem to replicate it in Power BI.  After I am able to get the Default Rate applied, I can easily create the rest of the formulas.

 

Complicated illustration.jpg

Community Support
Community Support

Re: Client Rates vs. Default Rates

Himomforrest,

You could create a calculated column like below

default value =
LOOKUPVALUE (
    T2[defaultvalue],
    T2[name], t1[name],
    T2[Year], YEAR ( t1[DATE] )
)

Then you could try to use  measure like below to calculate climet rate or deault rate *hour

Measure = sum(t1[ClientRate])*sum(t1[Hours])

369.PNG

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

Helpful resources

Announcements
‘Better Together’ T-Shirt Contest – Winner Announced!

‘Better Together’ T-Shirt Contest – Winner Announced!

And the winner is...

Announcing the New Spanish Forum

Announcing the New Spanish Forum

Do you need help in Spanish? Check out our new Spanish community section.

Attending MBAS? Claim your badge

Attending MBAS? Claim your badge

Whether you’re streaming the digital event live, or watching on-demand, claim your attendee badge to sport on your profile.

April 2020 Community Highlights

April 2020 Community Highlights

Info on our Super Users, MBAS content and badges, and updates to our support articles. - Read the full Community Highlights.

MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

Top Solution Authors
Top Kudoed Authors