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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
firasath
Regular Visitor

Approximate Match to retrieve values from other table

Hi,

 

I have monthly KPIs achievements in one table updated on monthly basis in 'Table1'. I have separate table for Targets where he changes in targets are updated against each month in 'Table2'.

 

In excel, I was using XLOOKUP with approximate match to retrieve target from 'Table2" for each month in 'Table1". How can I do the same in Power BI. Please advise.

 

Table1

MonthAchievementsTargets (Retreieved from Table2)
Jan-2382%80%
Feb-23

78%

80%
Mar-2388%85%
Apr-2369%85%
May-2373%85%

 

Table2

MonthTargets
Jun-2080%
Mar-2385%
1 ACCEPTED SOLUTION
ThxAlot
Super User
Super User

ThxAlot_0-1702885447494.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LeanAndPractise(Everyday)


)



View solution in original post

5 REPLIES 5
ThxAlot
Super User
Super User

ThxAlot_0-1702885447494.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LeanAndPractise(Everyday)


)



Thanks, it worked very smoothly :). 

firasath
Regular Visitor

Thanks @Idrissshatila , but the above solution I tried earlier and the result is it is only updating the target for the month when the change happened, like illustrated in below table. It is not updating for all month. All other months are remanining blank in new column. 

 

MonthAchievementsTargets (Retreieved from Table2)
Jan-2382% 
Feb-23

78%

 
Mar-2388%85%
Apr-2369% 
May-2373% 

@firasath ,

 

is there records for another months ?



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Idrissshatila
Super User
Super User

Hello @firasath ,

 

you use the following formula

Target from table 2 = LOOKUPVALUE('Table 2'[Target],'Table 2'[Month],'Table 1'[Month])

 

Idrissshatila_0-1702878787812.png

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.