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
wktan
Frequent Visitor

Look up value based on (1) value between a range and (2) matching string

wktan_1-1645358911970.png

I'm trying to build a report that calculates sales commission based on seeveral tables. 
In my Report Matrix visual I have already gotten aggregate sales data from each salesperson, their respective branch and commission tier based on their branch. However, I can't figure out how to lookup the commission rate from the Commission Rate Table.

I have tried the following DAXes but it seems like the Filter function doesn't like Tier column having string values. Can anyone help me on this?

wktan_2-1645359117147.png

wktan_3-1645359293781.png

 

Thanks in advance.

 

2 REPLIES 2
PaulDBrown
Community Champion
Community Champion

Can you please share actual data as opposed to an image?





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Hi @PaulDBrown ,
You can try with the data in this file.
https://1drv.ms/x/s!Amug-t4AYqovg3BXu6LQrE4zeTPp?e=eVuAQ7

Let me know if you need more details. Thanks.

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.