March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi there,
In our data, there is a Date table created on the basis of 1 loaded data:
Solved! Go to Solution.
yes, this could be possible simply by following these steps.
1. Append all the date columns from all Tables which contains date.
2. Remove the Duplicate dates.
3. This will contain dates which are in all the tables. Lets suppose this table is named as DimDates.
To get all the dates without skipping any date in between. You can create a table.
DimCalendar = calendar(Min(DimDates[Date]),Max(DimDates[Date]))
Thanks and Regards
Shalabh Kushwaha
You can add a custom column with as "Date" in each table which is just a Column from 'Sales'[PaymentDate], 'Sales'[OrderDate], 'Subscribe'[SubDate], 'Shipment'[ShippingDate], 'Active'[ActiveDate] and then go for Appending and remove all other than Date column from Appended Table.
Thanks and Regards
Shalabh Kushwaha
Yes, Sure
The Way through which we can append the tables.
Step 1: Go to the "Transform Data".
Step 2: Click on "Append Query" in Power Query Editor.
Step 3: Select Tables which you want to Append.
Thanks and Regards
Shalabh Kushwaha
Hi Shalabh_kushwah,
Thanks for your reply. Yes I understand this is a way to append table, but here my question is, the Date is in different column names in different table, but not all in "Date" Column.
So, after append, there will be more than 1 columns, e.g. 'Sales'[PaymentDate], 'Sales'[OrderDate], 'Subscribe'[SubDate], 'Shipment'[ShippingDate], 'Active'[ActiveDate]
On the other hand, I just noticed there is a column created by using DAX, not in the raw data, so the Append function seems cannot process that column.
I was wondering if there is a way to combine all the Date into 1 column.
Please advise.
Thanks.
You can add a custom column with as "Date" in each table which is just a Column from 'Sales'[PaymentDate], 'Sales'[OrderDate], 'Subscribe'[SubDate], 'Shipment'[ShippingDate], 'Active'[ActiveDate] and then go for Appending and remove all other than Date column from Appended Table.
Thanks and Regards
Shalabh Kushwaha
Thanks again Shalabh_Kushwah for the workaround.
have you tried to use CALENDARAUTO()
CALENDARAUTO function (DAX) - DAX | Microsoft Learn
Proud to be a Super User!
Thanks for reply. Seems this will return a full year calendar? but the actual data earliest date is not 1st of January, it can be any day, e.g. 3-April-2023. (up to what data will be loaded)
I don't know if we can have better solution for this. If you want the exact earliest and latest date.
maybe you can try to use below formular to get the earliest and latest date. and put them in the calendar function.
min(min(min(date1,date2),date3),date4)
Proud to be a Super User!
thanks ryan_mayu for the plan B
you are welcome
Proud to be a Super User!
yes, this could be possible simply by following these steps.
1. Append all the date columns from all Tables which contains date.
2. Remove the Duplicate dates.
3. This will contain dates which are in all the tables. Lets suppose this table is named as DimDates.
To get all the dates without skipping any date in between. You can create a table.
DimCalendar = calendar(Min(DimDates[Date]),Max(DimDates[Date]))
Thanks and Regards
Shalabh Kushwaha
Thanks for reply, would you please explain a little more about how to appened all date columns in different table into 1 created table?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
85 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |