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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

UNION dates not working

Hi all,

 

I have created two tables based on two queries, one has 11 months of data and the rows of each month have that month's date, and the other table just has one date (today)

 

These are the table formulas in DAX:

 

Sector C = groupby('NEU Current Pipeline','NEU Current Pipeline'[Sector],'NEU Current Pipeline'[Pipe CV €M],'NEU Current Pipeline'[Hist Date])
 
Sector H = groupby('NEU History','NEU History'[Sector],'NEU History'[Pipe CV €M],'NEU History'[Hist Date])
 
I need to combine the tables so that I can chart the Pipe CV €M data - but when I use UNION to add the tables together the dates don't work.
 
Sector = UNION('Sector C','Sector H')
 
Individually, the tables look fine, but the combined table seems to have mixed up the columns, as some of the values look like dates (43166 etc) (see the below screen caps)
 
The dates are all formatted the same way an dthe PIpe CV €M is the same data type (decimal), but I'm obviously doing something wrong. Can anyone please help me? Thank you.
 
 
Table1.PNGTable 2table 2.PNGtable 3.PNG
 
 
S
1 REPLY 1
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

Based on my test, it could work on my side:

Table1:

1.PNG

Table2:

2.PNG

Union table:

1.PNG

Due to I could not reproduce your problem, could you please upload your report to your OneDrive or Dropbox and send the link here.

 

Regards,

Daniel He 

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.