Forum Discussion
Dax Union - To Add a Static Column
I observed that when incorporating a static field in a DAX query within a paginated report, it should be positioned last. (see the mistake I did in the following example. The example i shown in the original post was correct ) . In my situation, I mistakenly positioned the static field between other fields.
Eg.
SampleTable1 = Union(
selectcolumns(SampleTable1,
"MainAccount", "SalesAccount",
"Company", SampleTable1[Company],
"Invoice Date", SampleTable1[InvoiceDate])
,
selectcolumns(SampleTable2,
"MainAccount", "CostAccount",
"Company", SampleTable2[Company],
"Invoice Date", SampleTable2[InvoiceDate]))
- some_bih2 years agoCommunity Champion
Hi Suneer UNION "wants" proper column structure for underlying columns.
Check link for this functions https://learn.microsoft.com/en-us/dax/union-function-dax?WT.mc_id=DP-MVP-4025372