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
Emrecan
Helper I
Helper I

Reassigining columm values from another table /Merge, lookup or relations ?

Hello PBI community

We have encountered a performance challange while converting one of our Excel reports to Powerbi. 

 

We have two tables sourced from salesforce and Oracle database (Thru a querry).

 

Certain columms in the table from salesforce need reassingment of values "mainly name changes" but a certain value needs to be replaced accourding to a corresponing value on the table from the oracle DB. The catch here is that the connection that ties the salesforce table and the oracle table is another columm. LEAD ID 

Also the relation between Salesforce table and oracle table is many to many.  

 

The resulting reassignment of values would later be used as a selection for the reports user.

 

We have tried to do merge operations on power querry  between the salesforce table and the Oracle DB table but we are having performance issues and freezing on powerbi

 

The excel solution was to create an if statement for all the name changes and include a Vlookup on one of the instances where the correct name would be retrieved from the oracle table. 

 

SALESFORCE TABLE

Lead IDOwner
0e4eeb3a-e8b0-4bdf-a8ac-4514293c85683-Cold Lead
4582310053169463-Cold Lead
7241518016171933-Cold Lead
12950594575353134-Sent To Network
fb825520-2291-4b14-ab12-f208437016a84-Sent To Network
a5ba7270-4c01-11eb-8b2a-0f06b4a632c94-Sent To Network
f4ddbb9e-29d2-4743-b70b-5ec95643c2e74-Sent To Network

 

ORACLE TABLE

 

LEAD IDDRM
00000992-fe88-4c64-9d82-e3be1b5d50b81-No Sale Yet
00001520-eca0-11eb-acf9-4d9675ca5a971-No Sale Yet
00007a50-eda9-11ec-b2bc-8f0dbbed20f51-No Sale Yet
0000e980-282a-11ec-9ac1-993321cbe4e41-No Sale Yet
00010d00-dc86-11ec-a29b-bfb77451dfb92-Sale to Network
0001f9d0-88f4-11ec-9303-27c489c234f85-Sale Good 
0002044a-34cd-4724-a262-fe449db5d98c6-Sale Bad

 

Name Reassignment table 

Owner(From Salesforce Table)Status
1.a-To Be Qualified3-To Be Qualified
2-On Agent3-To Be Qualified
1.b-Dialer To Be Qualified3-To Be Qualified
3-Cold Lead9-Cold Lead
4-Sent To Networkif  "4-Sent To Network" value in salesforce[owner] table,  lookup Lead ID of the row in Oracle table and Retrieve DRM from Oracle table
5-ErrorX-Error
6-Prelaunch Leads3-To Be Qualified

 

so basicly it is a name reassingment operation but with a lookup from another table.

 

there might be a solition for this by using row context transition with iterative functions but ı am not experienced in that area.

 

Your advice on the best way to proceed would be most welcomed

 

Thanks 

1 ACCEPTED SOLUTION
KT_Bsmart2gethe
Impactful Individual
Impactful Individual

Hi @Emrecan,

 

Have you tried to have the join done in SQL? 

i.e. write the SQL, do the join in "WHERE"

 

This should help avoid calculations done in Power BI. 

 

Regards

KT

 

View solution in original post

3 REPLIES 3
Emrecan
Helper I
Helper I

Hello KT_Bsmart2gethe 

sadly the salesforce table is currently unavailable on oracleDB and it is obtained using powerquerry connection as such we cant join the tables in SQL.Another team is currenctly trying to deposit salesforce data in oracle but we have no access to their progress

 

 

If that's the case, maybe you can add Table.Buffer() to the reference table. 

KT_Bsmart2gethe
Impactful Individual
Impactful Individual

Hi @Emrecan,

 

Have you tried to have the join done in SQL? 

i.e. write the SQL, do the join in "WHERE"

 

This should help avoid calculations done in Power BI. 

 

Regards

KT

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors