<?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 Trying to Divide Count of Filtered Value by Another Count of Filtered Value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-Divide-Count-of-Filtered-Value-by-Another-Count-of/m-p/2802379#M88219</link>
    <description>&lt;P class=""&gt;So I have a table called Perf_Data and a column within which is Activity. Within activity is two distinct values - Sent and 1st IV. All the values in this column are text format.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;I need to have a measure which divides the count of one, by the count of the other.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;The bit I'm struggling with is the filtering by each individual value. My understanding is you would use {"Sent"} but I keep getting Syntax errors.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;Below is as far as I've gotten, but I cannot get it to work. Can anybody help as I'm pretty much tearing my eyeballs out what I think should be simple but is just not coming together.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;DIVIDE(COUNTA('Perf_Data'[Activity]{"1st IV"})), COUNTA('Perf_Data'[Activity]{"Sent"}))&lt;/P&gt;</description>
    <pubDate>Wed, 28 Sep 2022 09:50:58 GMT</pubDate>
    <dc:creator>Shane_lees</dc:creator>
    <dc:date>2022-09-28T09:50:58Z</dc:date>
    <item>
      <title>Trying to Divide Count of Filtered Value by Another Count of Filtered Value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-Divide-Count-of-Filtered-Value-by-Another-Count-of/m-p/2802379#M88219</link>
      <description>&lt;P class=""&gt;So I have a table called Perf_Data and a column within which is Activity. Within activity is two distinct values - Sent and 1st IV. All the values in this column are text format.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;I need to have a measure which divides the count of one, by the count of the other.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;The bit I'm struggling with is the filtering by each individual value. My understanding is you would use {"Sent"} but I keep getting Syntax errors.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;Below is as far as I've gotten, but I cannot get it to work. Can anybody help as I'm pretty much tearing my eyeballs out what I think should be simple but is just not coming together.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;DIVIDE(COUNTA('Perf_Data'[Activity]{"1st IV"})), COUNTA('Perf_Data'[Activity]{"Sent"}))&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 09:50:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-Divide-Count-of-Filtered-Value-by-Another-Count-of/m-p/2802379#M88219</guid>
      <dc:creator>Shane_lees</dc:creator>
      <dc:date>2022-09-28T09:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to Divide Count of Filtered Value by Another Count of Filtered Value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-Divide-Count-of-Filtered-Value-by-Another-Count-of/m-p/2802591#M88231</link>
      <description>&lt;LI-CODE lang="markup"&gt;My Measure =
VAR FirstIV =
    CALCULATE ( COUNTROWS ( 'Perf data' ), 'Perf data'[Activity] = "1st IV" )
VAR Sent =
    CALCULATE ( COUNTROWS ( 'Perf data' ), 'Perf data'[Activity] = "Sent" )
RETURN
    DIVIDE ( FirstIV, Sent )
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 28 Sep 2022 11:14:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-Divide-Count-of-Filtered-Value-by-Another-Count-of/m-p/2802591#M88231</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-09-28T11:14:58Z</dc:date>
    </item>
  </channel>
</rss>

