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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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

Helpful resources

Announcements
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors