<?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 How to get values from a row and transpose it to columns. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-values-from-a-row-and-transpose-it-to-columns/m-p/2961478#M98656</link>
    <description>&lt;P&gt;Hi.. I am pretty new to Power BI&lt;/P&gt;&lt;P&gt;I have two tables, one For the transaction Document and another for the Tender details of the transaction.&lt;/P&gt;&lt;P&gt;In the tender tables, for every tender it will create a row with the tender type (eg: Cash, Master Card, Visa etc) and the tender amount.&lt;/P&gt;&lt;P&gt;Even if a single transaction has multiple tenders (Split tenders) like cash and one of the cards, it has multiple record of rows for each tender type.&lt;/P&gt;&lt;P&gt;The tender table contains Transaction SID which is the reference to the Transaction Document.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My requirement is to Create coloumns according to the multiple tender type(Cash, mastercard, visa) which will contain the tender amount as values and group it according to the transaction SID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried adding a custom coloumn with&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;Cash = LOOKUPVALUE(TENDER[AMOUNT],TENDER[DOC_SID],DOCUMENT[SID],TENDER[TENDER_TYPE],0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but it gives an error&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;A table of multiple values was supplied where a single value was expected.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Please help me out in this.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Dec 2022 05:47:33 GMT</pubDate>
    <dc:creator>Krish4Work</dc:creator>
    <dc:date>2022-12-12T05:47:33Z</dc:date>
    <item>
      <title>How to get values from a row and transpose it to columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-values-from-a-row-and-transpose-it-to-columns/m-p/2961478#M98656</link>
      <description>&lt;P&gt;Hi.. I am pretty new to Power BI&lt;/P&gt;&lt;P&gt;I have two tables, one For the transaction Document and another for the Tender details of the transaction.&lt;/P&gt;&lt;P&gt;In the tender tables, for every tender it will create a row with the tender type (eg: Cash, Master Card, Visa etc) and the tender amount.&lt;/P&gt;&lt;P&gt;Even if a single transaction has multiple tenders (Split tenders) like cash and one of the cards, it has multiple record of rows for each tender type.&lt;/P&gt;&lt;P&gt;The tender table contains Transaction SID which is the reference to the Transaction Document.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My requirement is to Create coloumns according to the multiple tender type(Cash, mastercard, visa) which will contain the tender amount as values and group it according to the transaction SID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried adding a custom coloumn with&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;Cash = LOOKUPVALUE(TENDER[AMOUNT],TENDER[DOC_SID],DOCUMENT[SID],TENDER[TENDER_TYPE],0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but it gives an error&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;A table of multiple values was supplied where a single value was expected.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Please help me out in this.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 05:47:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-values-from-a-row-and-transpose-it-to-columns/m-p/2961478#M98656</guid>
      <dc:creator>Krish4Work</dc:creator>
      <dc:date>2022-12-12T05:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to get values from a row and transpose it to columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-values-from-a-row-and-transpose-it-to-columns/m-p/2961689#M98675</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="352854" data-lia-user-login="Krish4Work" class="lia-mention lia-mention-user"&gt;Krish4Work&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Do you have a relationship between the two tables? Can you please provide sample data from both tables along with the expected result?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 07:32:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-values-from-a-row-and-transpose-it-to-columns/m-p/2961689#M98675</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-12-12T07:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to get values from a row and transpose it to columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-values-from-a-row-and-transpose-it-to-columns/m-p/2961872#M98690</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Thanks for replying!&lt;/P&gt;&lt;P&gt;Please find the .pbix file in this attached wetransfer link.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A href="https://we.tl/t-eZ5i7pp6ty" target="_self"&gt;https://we.tl/t-eZ5i7pp6ty&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both the tables have relatioship ie Tender[Doc_sid] = Document[sid].&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 08:36:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-values-from-a-row-and-transpose-it-to-columns/m-p/2961872#M98690</guid>
      <dc:creator>Krish4Work</dc:creator>
      <dc:date>2022-12-12T08:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to get values from a row and transpose it to columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-values-from-a-row-and-transpose-it-to-columns/m-p/2962121#M98709</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="352854" data-lia-user-login="Krish4Work" class="lia-mention lia-mention-user"&gt;Krish4Work&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please refer to attached sample file. Hope this is what you're looking for&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Cash = 
SUMX (
    FILTER ( 
        RELATEDTABLE ( TENDER ),
        TENDER[TENDER_TYPE] = 0
    ),
    TENDER[AMOUNT]
)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 12 Dec 2022 09:58:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-values-from-a-row-and-transpose-it-to-columns/m-p/2962121#M98709</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-12-12T09:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to get values from a row and transpose it to columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-values-from-a-row-and-transpose-it-to-columns/m-p/2962288#M98725</link>
      <description>&lt;P&gt;Thankyou &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp; you've been a great help.&lt;/P&gt;&lt;P&gt;Your solution is working for me.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 11:08:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-values-from-a-row-and-transpose-it-to-columns/m-p/2962288#M98725</guid>
      <dc:creator>Krish4Work</dc:creator>
      <dc:date>2022-12-12T11:08:27Z</dc:date>
    </item>
  </channel>
</rss>

