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
klee7290
New Member

Modeling Relationship

I have a unique issue that I am not sure can be solved. 

 

I have two data sets with the following fields:

-Table A - Spend family, Category, Sub-category, country, global lead, regional lead

-Table B - Spend family, Category, Sub-category, country, spend amount, PO number + more

 

I am trying to bring in the global and regional lead from Table A to have the proper drill down of spend per lead from Table B. However, there are cases where there are multiple leads for the same category, sub-category, country. For example, I tried concatnating country, category, sub-category to create a unique ID (duplicates exist in both tables bc there are sometimes multiple leads for the same country.category.sub-category ID). I also have tried using a bridge table leveraging country but it shows me a whole instead of a piece (e.g., if the spend for Spend Family in France was $15, it would show $15 for every category that is associated with the Spend Family).

 

There does not seem to be a way to get a unique ID out of table A. Anyone have any suggestions?

1 ACCEPTED SOLUTION
v-huijiey-msft
Community Support
Community Support

Hi @klee7290 ,

 

Thanks for the reply from NaveenGandhi .

 

Please consider adding an additional field, lead, to the connection string to make it truly unique.

 

For example: country category sub-category lead.

 

This can be done in Power Query.

vhuijieymsft_0-1714456697917.png

 

If you have any other questions please feel free to contact me.

 

I would be grateful if you could provide me with pbix file, please remember not to log into your account in Power BI Desktop when uploading the pbix file.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

View solution in original post

2 REPLIES 2
v-huijiey-msft
Community Support
Community Support

Hi @klee7290 ,

 

Thanks for the reply from NaveenGandhi .

 

Please consider adding an additional field, lead, to the connection string to make it truly unique.

 

For example: country category sub-category lead.

 

This can be done in Power Query.

vhuijieymsft_0-1714456697917.png

 

If you have any other questions please feel free to contact me.

 

I would be grateful if you could provide me with pbix file, please remember not to log into your account in Power BI Desktop when uploading the pbix file.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

NaveenGandhi
Super User
Super User

Hello @klee7290 

 

Can you share sample data and expected outcome as it will be easier to resolve your issue quicker? Read the below articles if needed.


https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/td-p/144...

https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...



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.