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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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