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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
eacy
Helper II
Helper II

Smart way to pick the right value from configuration table

Hi,

 

I'm searching for a smart way to pick the right value from a configuration file.

I have a table where I want to assign a certain value in a calculated column "Profile" based on the values in some of the other columns.

Here is an example table named "Issues":

Issues with Profile.png

I would like to compare the values in "Category 1", "Category 2" and "Category 3" with the value in the configuration table name "Profiles" if there is an exact match in "Category 1, "Category 2" and "Category 3" I want this value from the Profiles[Name] to appear in the calculated column named Issues[Profile]

 

Here is a example table named "Profiles":

Profiles.png

 

i would like to be able to extent the number of Categories quiet easy.

 

Any suggestion is appriciated.

1 ACCEPTED SOLUTION
BhaveshPatel
Community Champion
Community Champion

Hi You can achieve this using one step process of merging two queries in Query Mode. You can see in attached screenshots.

Choose all three columns Category 1,2 and 3 while merging both queriesChoose all three columns Category 1,2 and 3 while merging both queriesExpand and Rename new columnExpand and Rename new columnfinal resultfinal result

 

Thanks & Regards,

Bhavesh

 

 

Thanks & Regards,
Bhavesh

Love the Self Service BI.
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to give Kudos.

View solution in original post

2 REPLIES 2
BhaveshPatel
Community Champion
Community Champion

Hi You can achieve this using one step process of merging two queries in Query Mode. You can see in attached screenshots.

Choose all three columns Category 1,2 and 3 while merging both queriesChoose all three columns Category 1,2 and 3 while merging both queriesExpand and Rename new columnExpand and Rename new columnfinal resultfinal result

 

Thanks & Regards,

Bhavesh

 

 

Thanks & Regards,
Bhavesh

Love the Self Service BI.
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to give Kudos.

Hi Bhavesh,

 

Briliant, simple and neat just what I needed, thanks

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.