<?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 Convert Calculated Calculated Column to Measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Calculated-Calculated-Column-to-Measure/m-p/1689675#M34721</link>
    <description>&lt;P&gt;Hi group!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm stuck with something... I currently have a calculated column in power query like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if [TEAM.IS_ROLE] = 1 or Text.Contains([TEAM.RESOURCE_NAME],"Dummy") then [ALLOC_HOURS]/[DWH_CMN_PERIOD_M_V.PERIOD_FTE] else 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i would like to turn this into a measure instead, but i cant figure out how to get the OR part correct&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone kindly advise! (or maybe in cant' be done?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;</description>
    <pubDate>Thu, 25 Feb 2021 13:18:32 GMT</pubDate>
    <dc:creator>andybamber</dc:creator>
    <dc:date>2021-02-25T13:18:32Z</dc:date>
    <item>
      <title>Convert Calculated Calculated Column to Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Calculated-Calculated-Column-to-Measure/m-p/1689675#M34721</link>
      <description>&lt;P&gt;Hi group!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm stuck with something... I currently have a calculated column in power query like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if [TEAM.IS_ROLE] = 1 or Text.Contains([TEAM.RESOURCE_NAME],"Dummy") then [ALLOC_HOURS]/[DWH_CMN_PERIOD_M_V.PERIOD_FTE] else 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i would like to turn this into a measure instead, but i cant figure out how to get the OR part correct&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone kindly advise! (or maybe in cant' be done?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 13:18:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Calculated-Calculated-Column-to-Measure/m-p/1689675#M34721</guid>
      <dc:creator>andybamber</dc:creator>
      <dc:date>2021-02-25T13:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Calculated Calculated Column to Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Calculated-Calculated-Column-to-Measure/m-p/1689851#M34728</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="255456" data-lia-user-login="andybamber" class="lia-mention lia-mention-user"&gt;andybamber&lt;/a&gt; -&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you want this as a measure or as a calculated column in DAX?&amp;nbsp; Since you appear to be referencing a field in a single row, I'm thinking Calculated Column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The function you will want to replace Text.Contains is &lt;A href="https://dax.guide/find/" target="_self"&gt;FIND()&lt;/A&gt; or &lt;A href="https://dax.guide/search/" target="_self"&gt;SEARCH()&lt;/A&gt;&amp;nbsp;. Therse functions returns an integer value instead of True/False, so your IF statement would be something like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #000000; font-family: 'SegoeUI','Lato','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;IF ( OR( TEAM[IS_ROLE] = 1,&amp;nbsp; FIND("Dummy", TEAM[RESOURCE_NAME], , 0) &amp;gt; 0 ), [ALLOC_HOURS]/[DWH_CMN_PERIOD_M_V.PERIOD_FTE] ,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #000000; font-family: 'SegoeUI','Lato','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt; 0 )&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #000000; font-family: 'SegoeUI','Lato','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;You could also use the || method for OR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="box-sizing: border-box; color: #000000; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; margin: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; box-sizing: border-box; color: #000000; display: inline; float: none; font-family: &amp;amp;quot; segoeui&amp;amp;quot;,&amp;amp;quot;lato&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;IF ( TEAM[IS_ROLE] = 1 || FIND("Dummy", TEAM[RESOURCE_NAME], , 0) &amp;gt; 0 , [ALLOC_HOURS]/[DWH_CMN_PERIOD_M_V.PERIOD_FTE] ,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="box-sizing: border-box; color: #000000; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; margin: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; box-sizing: border-box; color: #000000; display: inline; float: none; font-family: &amp;amp;quot; segoeui&amp;amp;quot;,&amp;amp;quot;lato&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt; 0 )&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="box-sizing: border-box; color: #000000; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; margin: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="box-sizing: border-box; color: #000000; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; margin: 0px;"&gt;Hope this helps&lt;/P&gt;
&lt;P style="box-sizing: border-box; color: #000000; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; margin: 0px;"&gt;David&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 14:30:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Calculated-Calculated-Column-to-Measure/m-p/1689851#M34728</guid>
      <dc:creator>dedelman_clng</dc:creator>
      <dc:date>2021-02-25T14:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Calculated Calculated Column to Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Calculated-Calculated-Column-to-Measure/m-p/1690014#M34730</link>
      <description>&lt;P&gt;Hi David! it is currently a calculated column in a table, but i was hoping i might be able to create a measure instead, and then remove the calculated column...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 15:37:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Calculated-Calculated-Column-to-Measure/m-p/1690014#M34730</guid>
      <dc:creator>andybamber</dc:creator>
      <dc:date>2021-02-25T15:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Calculated Calculated Column to Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Calculated-Calculated-Column-to-Measure/m-p/1690030#M34734</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="255456" data-lia-user-login="andybamber" class="lia-mention lia-mention-user"&gt;andybamber&lt;/a&gt; Andy - how will the measure be used and what is it calculating?&amp;nbsp; When you are doing text searches or looking for specific values in a column, measures become tricky.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share a copy of your pbix with sensitive data removed?&amp;nbsp; OneDrive, Dropbox, google drive, etc.&amp;nbsp; If not, sample data (inline, not a screen shot) and description/picture of your model would be helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 15:41:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Calculated-Calculated-Column-to-Measure/m-p/1690030#M34734</guid>
      <dc:creator>dedelman_clng</dc:creator>
      <dc:date>2021-02-25T15:41:32Z</dc:date>
    </item>
  </channel>
</rss>

