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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
FrankieVee
Frequent Visitor

Create a new value based on two columns in separate tables

Relatively new to Power BI, and have used this site plenty of times for assistance; figured I'd make my own post now after some prior digging. From what I've learned so far of PBI, this seems like a particularly unique request.

 

I have two tables, from two separate queries, and I'm looking to search one column from each for similar values, to either link or combine into a new value that I'd use to search. Its worth noting as well that one of the columns is custom. 

 

Below is an example of the tables:

 

EXCEL_DeOotLv8Vt.png



EXCEL_kQiFn8g2Iq.png

 

 

 

 

Table1, "Machine Type" column is the custom one I made based on the machine name. The goal is to be able to select "Server" or  "Workstation" in a filter, and have SERVERs or WORKSTATIONs show in Table1, and Server_Maint or Wrk_maint show in Table2. 

 

I hope I have explained this well; certianly let me know if any clarification is needed. Any help is appreciated, and thank you for the past assistance!

 

-Frank V.

5 REPLIES 5
v-lionel-msft
Community Support
Community Support

Hi @FrankieVee ,

 

Has your problem been solved?

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-lionel-msft
Community Support
Community Support

Hi @FrankieVee ,

 

It seems that as long as the table relationship is created.

ggg6.PNG

ggg7.PNG

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Tahreem24
Super User
Super User

@FrankieVee ,

After joining Company column in both the table then Create New column in Table 1:

New = SWITCH(Tbl1[Machine Type],"WORKSTATION","Wrk_maint","SERVER","Server_Maint")
1.PNG
2.PNG3.PNG
 
Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
ryan_mayu
Super User
Super User

@FrankieVee 

 

Could you please show the screenshot of the expected result that you want to get?

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




amitchandak
Super User
Super User

@FrankieVee , if these tables are joined on common key like company, you will be able to do.

else create machine type in Table 2 also based on billed Item

You can use containsstring

https://docs.microsoft.com/en-us/dax/containsstring-function-dax

Create a common dimensions of machine type, company and analyze them together

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.