<?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/2704011#M37918</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/313"&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;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="raghukumarch_0-1660669713333.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/766205i92EF02FB62C938A1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="raghukumarch_0-1660669713333.png" alt="raghukumarch_0-1660669713333.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Aug 2022 17:09:21 GMT</pubDate>
    <dc:creator>raghukumarch</dc:creator>
    <dc:date>2022-08-16T17:09:21Z</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="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/317289"&gt;@tamerj1&lt;/a&gt;&amp;nbsp;&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/377293"&gt;@SpartaBI&lt;/a&gt;,&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/291628"&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;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="raghukumarch_0-1660668552655.png" style="width: 93px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/766197iD42D30119F6595F0/image-dimensions/93x179?v=v2" width="93" height="179" role="button" title="raghukumarch_0-1660668552655.png" alt="raghukumarch_0-1660668552655.png" /&gt;&lt;/span&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="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/290281"&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="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/313"&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;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="raghukumarch_0-1660669713333.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/766205i92EF02FB62C938A1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="raghukumarch_0-1660669713333.png" alt="raghukumarch_0-1660669713333.png" /&gt;&lt;/span&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="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/290281"&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;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bilalrana_0-1660732226260.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/766785i14FCF8C9F77DF43A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bilalrana_0-1660732226260.png" alt="bilalrana_0-1660732226260.png" /&gt;&lt;/span&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;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bilalrana_1-1660732436132.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/766787i4536D1ADEEF92C35/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bilalrana_1-1660732436132.png" alt="bilalrana_1-1660732436132.png" /&gt;&lt;/span&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;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bilalrana_2-1660732650679.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/766790iB0CB54049672D4F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bilalrana_2-1660732650679.png" alt="bilalrana_2-1660732650679.png" /&gt;&lt;/span&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;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bilalrana_3-1660732673210.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/766791i631ACFAD866BB0BA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bilalrana_3-1660732673210.png" alt="bilalrana_3-1660732673210.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;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>

