<?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: Count of value for a Measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-value-for-a-Measure/m-p/3203864#M116617</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="540281" data-lia-user-login="Wilson_" class="lia-mention lia-mention-user"&gt;Wilson_&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;In the screen capture below, I've highlighted, in green, three different measures that calculate the same thing.&lt;BR /&gt;Which is the difference between column t100 and t0.&lt;BR /&gt;&lt;BR /&gt;I'm trying to get the count of occurances for each unique value in the delta columns.&amp;nbsp; Highlighted in green&lt;BR /&gt;In other words, I'm trying to get the count of the measure.&amp;nbsp; For each and every delta value in the column.&amp;nbsp; Just one of the delta measures.&amp;nbsp; Not all the delta measures.&lt;BR /&gt;&lt;BR /&gt;I've been trying everything: count, countx, counta.&amp;nbsp; &amp;nbsp;Unsuccessfully.&lt;BR /&gt;&lt;BR /&gt;I'm sure it can be done.&amp;nbsp; I'm just not that much of an expert at Power BI DAX to figure it out myself.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I've loaded the table here:&lt;BR /&gt;&lt;A href="https://drive.google.com/file/d/17bE1vnuyFIF_57ibm4f4hjt2lKaundP_/view?usp=share_link" target="_blank"&gt;https://drive.google.com/file/d/17bE1vnuyFIF_57ibm4f4hjt2lKaundP_/view?usp=share_link&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Apr 2023 22:18:06 GMT</pubDate>
    <dc:creator>ronbermudez</dc:creator>
    <dc:date>2023-04-24T22:18:06Z</dc:date>
    <item>
      <title>Count of value for a Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-value-for-a-Measure/m-p/3201198#M116385</link>
      <description>&lt;P&gt;Is it even possible to get the count for the DAX measure below?&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Delta T100 - T0 = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MIN&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;T0_T100_Delta_Distibution&lt;/SPAN&gt;&lt;SPAN&gt;[value]&lt;/SPAN&gt;&lt;SPAN&gt;) , &lt;/SPAN&gt;&lt;SPAN&gt;T0_T100_Delta_Distibution&lt;/SPAN&gt;&lt;SPAN&gt;[Folder1]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"t100"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MIN&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;T0_T100_Delta_Distibution&lt;/SPAN&gt;&lt;SPAN&gt;[value]&lt;/SPAN&gt;&lt;SPAN&gt;) , &lt;/SPAN&gt;&lt;SPAN&gt;T0_T100_Delta_Distibution&lt;/SPAN&gt;&lt;SPAN&gt;[Folder1]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"t0"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;I've been trying for weeks on my own.&lt;BR /&gt;&lt;BR /&gt;First, I need a measure to show each unique value for the Delta column, Delta T100-T0.&lt;BR /&gt;Second, I need to show the count of occurrences for each unique value.&lt;BR /&gt;&lt;BR /&gt;The expected table and visual must be derived from the table contained in the pbix.&amp;nbsp; Attached at the bottom.&lt;BR /&gt;&lt;U&gt;Expected Table&lt;/U&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Delta T100-T0: Unique Values&lt;/TD&gt;&lt;TD&gt;Count of Unique Values&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;62&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;2&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&lt;U&gt;Expected Visual&amp;nbsp; &amp;nbsp;( I mocked this visual)&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I loaded the table contained in .pbix in the link below:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1Tl0u3OIa3Hn2iGBif4dZfYEMcY9vJrb5/view?usp=share_link" target="_blank" rel="noopener"&gt;https://drive.google.com/file/d/1Tl0u3OIa3Hn2iGBif4dZfYEMcY9vJrb5/view?usp=share_link&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Apr 2023 01:30:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-value-for-a-Measure/m-p/3201198#M116385</guid>
      <dc:creator>ronbermudez</dc:creator>
      <dc:date>2023-04-23T01:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Count of value for a Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-value-for-a-Measure/m-p/3201621#M116411</link>
      <description>&lt;P&gt;Hello Ron,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm happy to help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I'm struggling to figure out what you're trying to accomplish, even looking at the pbix and your expected visual. Can you maybe rephrase and/or use a smaller table of data to illustrate your expected results? What is the Delta T100-T0 measure supposed to calculate, in words? The measure itself doesn't make sense to me.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Apr 2023 19:39:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-value-for-a-Measure/m-p/3201621#M116411</guid>
      <dc:creator>Wilson_</dc:creator>
      <dc:date>2023-04-23T19:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Count of value for a Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-value-for-a-Measure/m-p/3203332#M116554</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="540281" data-lia-user-login="Wilson_" class="lia-mention lia-mention-user"&gt;Wilson_&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thanks.&amp;nbsp; I need your help!&lt;BR /&gt;&lt;BR /&gt;In practice, T0 represents data before testing begins.&amp;nbsp; Subsequent Tn data (T100, T125, T150), will represent data after hours of conditioning.&amp;nbsp; Tn = 100 hours, 125 hours, 150 hours.&amp;nbsp; The device is tested at each Tn interval.&lt;BR /&gt;&lt;BR /&gt;I want to compare the delta from T0 vs T100 and T125 and T150.&amp;nbsp; Then see the frequency distribution of the deltas between T100 vs T125 vs T150 for &lt;STRONG&gt;every single delta value.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;The real data table will be over 50K rows, and as much as 500K rows.&amp;nbsp; Depending on the sample size.&lt;BR /&gt;&lt;BR /&gt;The expected deltas are expected to change as the conditioning hours lengthen.&lt;BR /&gt;When the delta frquency distribitions are compared in a single visual we should be able to see that trend.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 16:26:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-value-for-a-Measure/m-p/3203332#M116554</guid>
      <dc:creator>ronbermudez</dc:creator>
      <dc:date>2023-04-24T16:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Count of value for a Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-value-for-a-Measure/m-p/3203864#M116617</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="540281" data-lia-user-login="Wilson_" class="lia-mention lia-mention-user"&gt;Wilson_&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;In the screen capture below, I've highlighted, in green, three different measures that calculate the same thing.&lt;BR /&gt;Which is the difference between column t100 and t0.&lt;BR /&gt;&lt;BR /&gt;I'm trying to get the count of occurances for each unique value in the delta columns.&amp;nbsp; Highlighted in green&lt;BR /&gt;In other words, I'm trying to get the count of the measure.&amp;nbsp; For each and every delta value in the column.&amp;nbsp; Just one of the delta measures.&amp;nbsp; Not all the delta measures.&lt;BR /&gt;&lt;BR /&gt;I've been trying everything: count, countx, counta.&amp;nbsp; &amp;nbsp;Unsuccessfully.&lt;BR /&gt;&lt;BR /&gt;I'm sure it can be done.&amp;nbsp; I'm just not that much of an expert at Power BI DAX to figure it out myself.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I've loaded the table here:&lt;BR /&gt;&lt;A href="https://drive.google.com/file/d/17bE1vnuyFIF_57ibm4f4hjt2lKaundP_/view?usp=share_link" target="_blank"&gt;https://drive.google.com/file/d/17bE1vnuyFIF_57ibm4f4hjt2lKaundP_/view?usp=share_link&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 22:18:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-value-for-a-Measure/m-p/3203864#M116617</guid>
      <dc:creator>ronbermudez</dc:creator>
      <dc:date>2023-04-24T22:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Count of value for a Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-value-for-a-Measure/m-p/3207389#M116845</link>
      <description>&lt;P&gt;Hey Ron,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See changed pbix &lt;A href="https://drive.google.com/file/d/1HsYNrLlrAmkdYneT2eIUEowHGUIPRoDC/view?usp=share_link" target="_self"&gt;here&lt;/A&gt;. Maybe there's a different way but I essentially created a summary table of your data (change it or add columns as needed) so I could use the deltas from that summary table as the min and max values of another table (a parameter table). That parameter table was used to calculate your counts.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;----------------------------------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 13:44:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-value-for-a-Measure/m-p/3207389#M116845</guid>
      <dc:creator>Wilson_</dc:creator>
      <dc:date>2023-04-26T13:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Count of value for a Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-value-for-a-Measure/m-p/3262134#M120689</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="540281" data-lia-user-login="Wilson_" class="lia-mention lia-mention-user"&gt;Wilson_&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you! I've been away from any PBI development that last month.&amp;nbsp; Now, it's due.&amp;nbsp; Oh boy.&lt;BR /&gt;I'll check it out.&amp;nbsp; Thanks for your time again....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 14:26:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-value-for-a-Measure/m-p/3262134#M120689</guid>
      <dc:creator>ronbermudez</dc:creator>
      <dc:date>2023-05-31T14:26:09Z</dc:date>
    </item>
  </channel>
</rss>

