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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
mterry
Helper V
Helper V

Adding additional data to Union table

I have a table, which is really a single column, that combines the distinct vehicle number values from several data sources as shown in the snip. What I'm hoping to do now as an additional step, is to add a second column that can flag whether or not the vehicle number has occurred in the fleet_revenue_analysis table within the past 12 months? Is it possible to add that data in the same step, or perhaps as a second additional step?Screenshot 2024-03-04 151339.png

 

1 REPLY 1
lbendlin
Super User
Super User

You can use ADDCOLUMNS or SUMMARIZECOLUMNS or SUMMARIZE - there are many more options to do that BEFORE you do Union.  All Union cares about is that it's the same number of columns. It is your responsibility to provide them in the right order and with the right type.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.