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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Range Lookup

Hi Experts,

 

I have a data in 2 sheets one is fact table and one i am creating for targets for calculating commissions.

Below is the example of dataset, would really appreciate if anyone can provide me the solution.

In Excel we can do we lookup with approximate match, but how can we achieve this objective in PBI as I am calculating KPI achieved through measure for each location and want to see how much commission they have achieved so for?

image.png

8 REPLIES 8
Anonymous
Not applicable

Anyone?

Anonymous
Not applicable

Anonymous
Not applicable

Hi,

You have incorporated that in to the table, where I need that calculation in Table Visual. Because the Fact table is not comprises on few records. It has many of the records and I am Calculating achievements through measure.

 

https://drive.google.com/file/d/1Ejs6v0c16b3v09zN46h3iEBHW0QsIDzg/view?usp=sharing

 

Kindly use the link to pbix file

Anonymous
Not applicable

anyone can helpppp...??

 

Fowmy
Super User
Super User

@Anonymous 

Can you put the same data in a power bi file and show the expected results as well in the reply?

You save the file in OneDrive or Google Drive and share the link here

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

Hi @Anonymous ,

 

1. Add custom columns for each table in power query

Text.Format("#[left]-#[right]",[left=Number.IntegerDivide([KPI]/10,1)*10-4,right=left+9])

2. Create a new column with DAX:

commission = LOOKUPVALUE('Table'[Commission ],'Table'[Location],'Table (2)'[Location],'Table'[distribution],'Table (2)'[Custom])

Vlianlmsft_0-1648012990963.png

 


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

Anonymous
Not applicable

As you can see every location has target (Attendees), Take a example of Motor City it has the range of Attendees, every incremental attendees the location achieve so the commission will increase.

laraibashfaq10_0-1647770246808.png

Through this table I want to calculate the commission for each Location:

For example Motorcity has achieve 711 Attendess so the commission would be 750.

laraibashfaq10_2-1647771197421.png

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.