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
Naushad123
Regular Visitor

Merge two tables, and update column header with data in specific column

Hi all,

i have two tables

Table 1 is about the allowances assign to specific designation

desigallow.jpgtable2table2result.jpg

Table 2 in emplyee payroll table

 

 

i want to create a column with specific allowances and amount having allowance name header so that if in future any employee gets difference allowance i can only update my Table 1 and after creation of column in Table 2 the amount goes for the designation wise employees.

 

6 REPLIES 6
Anonymous
Not applicable

Hi,

 

You can use append queries on the basis of EmpID.

Not working.
Anonymous
Not applicable

Hi @Naushad123,

I think what you are after is the join/merge on the Designation field. Then expand Allowance types. Then pivot them.

The trick may be with pivoting if you want to make it dynamic on the allowance types included in the final dataset. If you need this let me know I will provide a solution -or you can do it yourself - this is an intersection of Table.ColumnNames on Table 2 and List.Distinct on Designation field in Table 1.

Kind regards,
JB
dax
Community Support
Community Support

Hi @Naushad123 , 

I am not clear about your requirement, it seems that you want to update  amount in table 2, right? I want to know which amount did you want to show for "Managing Director"?

625.PNG 

If possible, could you please inform me more detailed information(such as your expected output and your sample data )? Then I will help you more correctly.

Please do mask sensitive data before uploading(you could typing the data or upload by OneDrive for Business ).

Thanks for your understanding and support.
Best Regards,
Zoe Zhi

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

Thanks @dax, yes it is like that.i am sorry i double the table2, the first table1 with name desigallow, i want to update the amount specificaly for managing director like you said but in "Orderly Allow" column only, likewise Naib Qasid "integrated Allow" column have value of 450.

 

Table 1 Allowances record become column in Table2, and update with the amount mentioned in Table1, the criteria in Table 2 is Designation Column,

 

i hope i tried my best to make you understand.

ImkeF
Super User
Super User

Hi it's not clear to me what you'r after. Please check this article on how to improve qualilty of your question: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

You've posted 2 (1.5) Tables with the name Table2, that doesn't help understanding.

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Helpful resources

Announcements
Europe Fabric Conference

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.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

Top Solution Authors
Top Kudoed Authors