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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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