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.
When we archive data in our ERP system it moves the transaction data from the current data ARTRAN to an archive table ARYTRN.
My DAX abilities are limited, but I would think I would need to merge? the data in order to use the DAX date and time features to compare periods of time. The data for prior years activity in in ARYTRN and current period is in ARTRAN. I have attached screenshots of the table structures as they load from my direct query.
Solved! Go to Solution.
Thank you for your response. I did an import of the tables and it appended very easily.
Regards,
Scott B. Meder
You can use the DAX method UNION to merge the 2 tables within PowerBI as long as the 2 tables have the same columns. Under the modeling tab select New Table, and enter the expression below.
New Table = union(ARYTRN , ARTRAN)
Hope this helps.
Will this method work with direct query?
Thank you for your response. I did an import of the tables and it appended very easily.
Regards,
Scott B. Meder
Hi @sbmeder,
Based on my test, Append Queries and Append Queries as New are not supported in DirectQuery mode. Assume you connect to SQL Server database, in Get Data wizard, you can write the T-SQL to merge data.
Best Regards,
Qiuyun Yu
In the query editor you can append without worrying about table structure and the resulting table will have better compression.
To create one master table, you perform an append. When you want to blend data from different tables, such as a SQL join or a Lookup (or IndexMatch) from excel, you perform a merge.
I seemed to have trouble trying to append the data. Table structures are somewhat different. For some reason, I thought I read that BI would look to see if one table had custno and invdte as data in one it would try and map in the other table?
Regards,
Scott
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
104 | |
101 | |
79 | |
72 | |
64 |
User | Count |
---|---|
142 | |
108 | |
101 | |
81 | |
74 |