<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Dax Union - To Add a Static Column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Union-To-Add-a-Static-Column/m-p/3567597#M137533</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I observed that when incorporating a static field in a DAX query within a paginated report, it should be positioned last.&amp;nbsp;(see the mistake I did in the following example. The example i shown in the original post was correct )&amp;nbsp; . In my situation, I mistakenly positioned the static field between other fields.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Eg.&lt;/P&gt;&lt;P&gt;SampleTable1 = Union(&lt;BR /&gt;selectcolumns(SampleTable1,&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"MainAccount", "SalesAccount",&lt;/FONT&gt;&lt;BR /&gt;"Company", SampleTable1[Company],&lt;BR /&gt;"Invoice Date", SampleTable1[InvoiceDate])&lt;BR /&gt;,&lt;BR /&gt;selectcolumns(SampleTable2,&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"MainAccount", "CostAccount",&lt;/FONT&gt;&lt;BR /&gt;"Company", SampleTable2[Company],&lt;BR /&gt;"Invoice Date", SampleTable2[InvoiceDate]))&lt;/P&gt;</description>
    <pubDate>Tue, 05 Dec 2023 04:56:24 GMT</pubDate>
    <dc:creator>Suneer</dc:creator>
    <dc:date>2023-12-05T04:56:24Z</dc:date>
    <item>
      <title>Dax Union - To Add a Static Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Union-To-Add-a-Static-Column/m-p/3565440#M137452</link>
      <description>&lt;P&gt;I've generated a Union Query in DAX and included a static field named "MainAccount" (highlighted in red). This functionality functions correctly in Power BI. However, when I attempt to replicate the same in a paginated report, an error is encountered. The provided DAX query serves as an example. Assistance in resolving this issue would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SampleTable1 = Union(&lt;BR /&gt;selectcolumns(SampleTable1,&lt;BR /&gt;"Company", SampleTable1[Company],&lt;BR /&gt;"Invoice Date", SampleTable1[InvoiceDate]&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;"MainAccount", "SalesAccount"&lt;/STRONG&gt;&lt;/FONT&gt;),&lt;BR /&gt;selectcolumns(SampleTable2,&lt;BR /&gt;"Company", SampleTable2[Company],&lt;BR /&gt;"Invoice Date", SampleTable2[InvoiceDate],&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;"MainAccount", "CostAccount"&lt;/FONT&gt;&lt;/STRONG&gt;))&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 04:57:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Union-To-Add-a-Static-Column/m-p/3565440#M137452</guid>
      <dc:creator>Suneer</dc:creator>
      <dc:date>2023-12-05T04:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Union - To Add a Static Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Union-To-Add-a-Static-Column/m-p/3566388#M137484</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="444489" data-lia-user-login="Suneer" class="lia-mention lia-mention-user"&gt;Suneer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for both&amp;nbsp;&lt;FONT face="arial,helvetica,sans-serif" color="#000000"&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;"SalesAccount" and&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;"CostAccount" you will need table reference (usually)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 14:52:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Union-To-Add-a-Static-Column/m-p/3566388#M137484</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-12-04T14:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Union - To Add a Static Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Union-To-Add-a-Static-Column/m-p/3567597#M137533</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I observed that when incorporating a static field in a DAX query within a paginated report, it should be positioned last.&amp;nbsp;(see the mistake I did in the following example. The example i shown in the original post was correct )&amp;nbsp; . In my situation, I mistakenly positioned the static field between other fields.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Eg.&lt;/P&gt;&lt;P&gt;SampleTable1 = Union(&lt;BR /&gt;selectcolumns(SampleTable1,&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"MainAccount", "SalesAccount",&lt;/FONT&gt;&lt;BR /&gt;"Company", SampleTable1[Company],&lt;BR /&gt;"Invoice Date", SampleTable1[InvoiceDate])&lt;BR /&gt;,&lt;BR /&gt;selectcolumns(SampleTable2,&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"MainAccount", "CostAccount",&lt;/FONT&gt;&lt;BR /&gt;"Company", SampleTable2[Company],&lt;BR /&gt;"Invoice Date", SampleTable2[InvoiceDate]))&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 04:56:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Union-To-Add-a-Static-Column/m-p/3567597#M137533</guid>
      <dc:creator>Suneer</dc:creator>
      <dc:date>2023-12-05T04:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Union - To Add a Static Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Union-To-Add-a-Static-Column/m-p/3567759#M137546</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="444489" data-lia-user-login="Suneer" class="lia-mention lia-mention-user"&gt;Suneer&lt;/a&gt;&amp;nbsp;UNION "wants" proper column structure for underlying columns.&lt;/P&gt;
&lt;P&gt;Check link for this functions&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/dax/union-function-dax?WT.mc_id=DP-MVP-4025372" target="_self"&gt;https://learn.microsoft.com/en-us/dax/union-function-dax?WT.mc_id=DP-MVP-4025372&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 07:12:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Union-To-Add-a-Static-Column/m-p/3567759#M137546</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-12-05T07:12:49Z</dc:date>
    </item>
  </channel>
</rss>

