<?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: Using calculated Columns instead of Measures in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-calculated-Columns-instead-of-Measures/m-p/2439249#M65239</link>
    <description>&lt;P&gt;Please provide sanitized sample data that fully covers your issue. If you paste the data into a table in your post or use one of the file services it will be easier to assist you. Avoid posting screenshots of your source data if possible.&lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Apr 2022 01:25:49 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2022-04-06T01:25:49Z</dc:date>
    <item>
      <title>Using calculated Columns instead of Measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-calculated-Columns-instead-of-Measures/m-p/2436539#M65044</link>
      <description>&lt;P&gt;Hello DAX team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im trying to reuse the below both measures but as calculated columns that I'm trying to create in power query as Custom column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&lt;STRONG&gt; &amp;nbsp;# Deals in Rel&lt;/STRONG&gt; =&amp;nbsp; count(DealsData[dealsNbr])&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; &lt;STRONG&gt;# Deals-orig and curr are the same&lt;/STRONG&gt; =&amp;nbsp; COUNTX(filter(DealsData, DealsData[ProdOfcr – first 2 characters] = DealsData[first 2 characters]), DealsData[dealsNbr]).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Intially, I created the first column to do the same job of measure 1 with the DAX in the below screenshot but it gave me an error then :&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;the reason for creating these columns instead of measures so that i can use SUM or Count with those columns , because as we know we can't view SUM or COunt with measure but we can do so with Columns as the below screenshots :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;To sum up, i need your support to creat columns by wrting suitable DAX that give me the same job of the above 2 measrures (1. , 2.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you,&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 19:42:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-calculated-Columns-instead-of-Measures/m-p/2436539#M65044</guid>
      <dc:creator>RaghdahIsmael</dc:creator>
      <dc:date>2022-04-04T19:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using calculated Columns instead of Measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-calculated-Columns-instead-of-Measures/m-p/2439249#M65239</link>
      <description>&lt;P&gt;Please provide sanitized sample data that fully covers your issue. If you paste the data into a table in your post or use one of the file services it will be easier to assist you. Avoid posting screenshots of your source data if possible.&lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 01:25:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-calculated-Columns-instead-of-Measures/m-p/2439249#M65239</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-04-06T01:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using calculated Columns instead of Measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-calculated-Columns-instead-of-Measures/m-p/2442537#M65459</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="374874" data-lia-user-login="RaghdahIsmael" class="lia-mention lia-mention-user"&gt;RaghdahIsmael&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add two custom column as below. Then you can SUM or Count them in report view.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;New Table looks like as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 07:22:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-calculated-Columns-instead-of-Measures/m-p/2442537#M65459</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-07T07:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using calculated Columns instead of Measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-calculated-Columns-instead-of-Measures/m-p/2455479#M66238</link>
      <description>&lt;P&gt;"Rico Zhou" thank you indeed for your reponse and suggested solution much appreciated and yes it worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 15:56:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-calculated-Columns-instead-of-Measures/m-p/2455479#M66238</guid>
      <dc:creator>RaghdahIsmael</dc:creator>
      <dc:date>2022-04-13T15:56:34Z</dc:date>
    </item>
  </channel>
</rss>

