<?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: Addcolumns (columnname + i) with names depending on variable in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Addcolumns-columnname-i-with-names-depending-on-variable/m-p/3163947#M42020</link>
    <description>&lt;P&gt;@Anonymous&lt;/a&gt;&amp;nbsp;Can't use a variable that way. Could probably get there using GENERATE but would need sample data pasted as text to mock it up.&amp;nbsp;Sorry, having trouble following, can you post sample data as text and expected output?&lt;BR /&gt;Not really enough information to go on, please first check if your issue is a common issue listed here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Mar 2023 16:20:57 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2023-03-30T16:20:57Z</dc:date>
    <item>
      <title>Addcolumns (columnname + i) with names depending on variable</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Addcolumns-columnname-i-with-names-depending-on-variable/m-p/3163855#M42017</link>
      <description>&lt;P&gt;Greetings,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I mtrying to create a function that adds columns based on the numbers available in the column "Chronologie", the problem is that ADDCOLUMNS&amp;nbsp; does not accept my variable , and I have this error : ADDCOLUMNS&amp;nbsp; needs a name as an argument number 2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a result I want to have these columns&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;" Date soumission + VAR Listechronologie" : "Date soumission 1" , "Date soumission 2" ....&lt;/P&gt;&lt;P&gt;You ll find a screenshot with the optimized code with the error and the "step by step" code but working.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code that I wrote:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="code pbi.PNG" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/895268i3342442D766B5BD5/image-size/large?v=v2&amp;amp;px=999" role="button" title="code pbi.PNG" alt="code pbi.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="code 2.PNG" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/895269iBDAFBD1E6D67B73E/image-size/large?v=v2&amp;amp;px=999" role="button" title="code 2.PNG" alt="code 2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/148838"&gt;@amitchandak&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/313"&gt;@Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 15:40:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Addcolumns-columnname-i-with-names-depending-on-variable/m-p/3163855#M42017</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-30T15:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Addcolumns (columnname + i) with names depending on variable</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Addcolumns-columnname-i-with-names-depending-on-variable/m-p/3163947#M42020</link>
      <description>&lt;P&gt;@Anonymous&lt;/a&gt;&amp;nbsp;Can't use a variable that way. Could probably get there using GENERATE but would need sample data pasted as text to mock it up.&amp;nbsp;Sorry, having trouble following, can you post sample data as text and expected output?&lt;BR /&gt;Not really enough information to go on, please first check if your issue is a common issue listed here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 16:20:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Addcolumns-columnname-i-with-names-depending-on-variable/m-p/3163947#M42020</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2023-03-30T16:20:57Z</dc:date>
    </item>
  </channel>
</rss>

