<?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: Help for Calculated/Conditional/Custom Column in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Help-for-Calculated-Conditional-Custom-Column/m-p/2703982#M37917</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="290281" data-lia-user-login="raghukumarch" class="lia-mention lia-mention-user"&gt;raghukumarch&lt;/a&gt;&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/DAX-Help-for-Custom-Conditional-Column/m-p/2703975" target="_blank"&gt;DAX Help for Custom/Conditional Column - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Please don't cross-post.&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>Tue, 16 Aug 2022 16:52:52 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2022-08-16T16:52:52Z</dc:date>
    <item>
      <title>Help for Calculated/Conditional/Custom Column</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Help-for-Calculated-Conditional-Custom-Column/m-p/2703978#M37916</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;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="377293" data-lia-user-login="SpartaBI" class="lia-mention lia-mention-user"&gt;SpartaBI&lt;/a&gt;,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me in achieving this either in DAX or PowerQuery.&lt;BR /&gt;One of my column in table has values like this.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to create another column in same table by adding "0" in the begining for the values which dose not contain "-" and other value which contains "-" should remains same as it is.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example column 'C_SerialNumber' have values like "311211025073516" and "916429-19-11"&lt;/P&gt;&lt;P&gt;I wanted to add '0' in the begining if the value DOES NOT Contain '-'. So the output will be "0311211025073516" and other values remains same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;RK&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 16:53:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Help-for-Calculated-Conditional-Custom-Column/m-p/2703978#M37916</guid>
      <dc:creator>raghukumarch</dc:creator>
      <dc:date>2022-08-16T16:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help for Calculated/Conditional/Custom Column</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Help-for-Calculated-Conditional-Custom-Column/m-p/2703982#M37917</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="290281" data-lia-user-login="raghukumarch" class="lia-mention lia-mention-user"&gt;raghukumarch&lt;/a&gt;&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/DAX-Help-for-Custom-Conditional-Column/m-p/2703975" target="_blank"&gt;DAX Help for Custom/Conditional Column - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Please don't cross-post.&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>Tue, 16 Aug 2022 16:52:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Help-for-Calculated-Conditional-Custom-Column/m-p/2703982#M37917</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-08-16T16:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help for Calculated/Conditional/Custom Column</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Help-for-Calculated-Conditional-Custom-Column/m-p/2704011#M37918</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp; Thanks for the quick response. Please find the attachment for sample data. and expected results. I couldn't find an option to attach sample data in xlsx. hence sharing a screenshot here.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 17:09:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Help-for-Calculated-Conditional-Custom-Column/m-p/2704011#M37918</guid>
      <dc:creator>raghukumarch</dc:creator>
      <dc:date>2022-08-16T17:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Help for Calculated/Conditional/Custom Column</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Help-for-Calculated-Conditional-Custom-Column/m-p/2706287#M37941</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="290281" data-lia-user-login="raghukumarch" class="lia-mention lia-mention-user"&gt;raghukumarch&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I have implemented your scenario, Here's the few steps to achieve the required output.&lt;BR /&gt;&lt;BR /&gt;Go to &lt;STRONG&gt;Home&lt;/STRONG&gt; - &amp;gt; &lt;STRONG&gt;Transform Data&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Open the Query which contains the column C_SerialNumber.&lt;BR /&gt;&lt;BR /&gt;Go to - &amp;gt; &lt;STRONG&gt;Add Column&lt;/STRONG&gt; - &amp;gt; &lt;STRONG&gt;Custom Column&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;New Column Name:&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;CheckColumn&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Custom column formula:&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;Text.Contains([C_SerialNumber],"-")&lt;BR /&gt;&lt;BR /&gt;Now click on &lt;STRONG&gt;OK.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now again click on&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;Add Column&lt;/STRONG&gt; - &amp;gt; &lt;STRONG&gt;Custom Column&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;New Column Name:&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;NewC_SerialNumber&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Custom column formula:&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;if [CheckColumn] = false then "0" &amp;amp; [C_SerialNumber] else [C_SerialNumber]&lt;BR /&gt;&lt;BR /&gt;Now click on &lt;STRONG&gt;OK.&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Now, check on the formula bar, if the type isn't set to text then write it in a way as below screen short and click on the tick.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the desire output in a new column.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please like the reply and accept it as a solution to help the Power BI Community.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 10:39:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Help-for-Calculated-Conditional-Custom-Column/m-p/2706287#M37941</guid>
      <dc:creator>bilalrana</dc:creator>
      <dc:date>2022-08-17T10:39:09Z</dc:date>
    </item>
  </channel>
</rss>

