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
Andshepch
Advocate II
Advocate II

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
Employee
Employee

Hi @Andshepch,

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
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.

Top Solution Authors