Forum Discussion
Union Formula mixes columns
- 9 years ago
just a guess, in your dax union formula, maybe try no to reference the table directly, bu use something like
union (summarize(table_current, field1,field2),summarize(table_history,field1,field2))
Hi Parry
sure, but i guess that`s not really helpful. The column structure is the same in both tables. Also it retrieves the correct data from the Server, only after the union formula it writes at the end the KABEG to the Sales_Rev_Quantity.
KR
Florian
Let me ask it again. You have two queries in PowerBI from same sql server but filtered on different date and then you are using append query in PowerBI Model, is this correct understanding?
- Flori_Abb9 years agoHelper I
I have two queries
one retrieves the historic data Data_AVDWhistoric andthe other retrieves the current data Data_AVDWcurrent
The queries are excactly the same, only the sql retrieval date is different.
Now i used the formula Data_AVDW = union (data_avdwhistoric;data_avdwcurrent) to get a combined table. That should help me to avoid the long loading time of the historic Datatable.
I thought that would be an easy excercise...- parry2k9 years agoSuper User
Ah, so you are using DAX UNION formula to combine the two tables. I never used this function but used Append Queries in data model
Did you tried that?
- Click Edit Queries
- Append Queries
- parry2k9 years agoSuper User
here is similar question in the past on this forum
https://community.powerbi.com/t5/Desktop/union-formula-column-section-error/td-p/80004