Reply
FrankieVee
Frequent Visitor
Partially syndicated - Outbound

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

Syndicated - Outbound

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

Syndicated - Outbound

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

Syndicated - Outbound

@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

Syndicated - Outbound

@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

Syndicated - Outbound

@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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)