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
Narender
Resolver I
Resolver I

Apply a flag before Append between 2 table

Hi Team,

 

I have 2 fact tables. I need to append both tables  with the common date_key field to connect date_key field of calender.

 

Before append i need to add a column in both table like Flag ='A' in 1st table and  Flag ='B'  in 2nd table.

 

This 'A' value  will add in each column of 1st table.

 

Same 'B' value  will add in each column of 2nd table.

 

After that i want to append both table.

 

whenever a new value will come in  1st table than value 'A' will be automatically added in 1st table.

Same way with 2nd table when new  value will come in  2nd table then B will automatically added in 2nd table.

 

 

As you know we have append earlier then the vale added in appended table automatically.

 

Please let me know how can i add a Flag that will automatically get value A whenever new value come in that table.

 

 

 

Thanks,

 

Narender

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@Narender,

 

It seems that you may just add two custom columns in Query Editor.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Sam,

Yes. i have added 2 custom column in 2 diffrent tables  in power query. 

 

I think , for such situation when we need 1 fact table then we should proceed with same process.

 

But I dont know wether it is right way to achieve result in Power BI?

 

 

 

 

Thanks,

 

Narender

 

 

 

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.