<?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 Help with percentages in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-percentages/m-p/2419303#M64019</link>
    <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;apologies if this seems like a noob question but in desperate need of help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we have a Power BI dataset Already which tells me the records recorded over a monthly period, I even have a column in the dataset which tells me if that record has hit SLA or not, I have this value as simply HIT or MISS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have managed to work out using a table the percentage of hits vs the number of misses, drilled down over the last 6 month however cannot seem to work out how to not display the MISS data without it messing up the HIT data, can anyone offer any advice on what I am doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;also is there anyway for DAX to work out the percentage change month over month based on the HIT percentage?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;many thanks in advance&lt;/P&gt;</description>
    <pubDate>Sat, 26 Mar 2022 16:30:01 GMT</pubDate>
    <dc:creator>Neilt</dc:creator>
    <dc:date>2022-03-26T16:30:01Z</dc:date>
    <item>
      <title>Help with percentages</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-percentages/m-p/2419303#M64019</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;apologies if this seems like a noob question but in desperate need of help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we have a Power BI dataset Already which tells me the records recorded over a monthly period, I even have a column in the dataset which tells me if that record has hit SLA or not, I have this value as simply HIT or MISS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have managed to work out using a table the percentage of hits vs the number of misses, drilled down over the last 6 month however cannot seem to work out how to not display the MISS data without it messing up the HIT data, can anyone offer any advice on what I am doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;also is there anyway for DAX to work out the percentage change month over month based on the HIT percentage?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;many thanks in advance&lt;/P&gt;</description>
      <pubDate>Sat, 26 Mar 2022 16:30:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-percentages/m-p/2419303#M64019</guid>
      <dc:creator>Neilt</dc:creator>
      <dc:date>2022-03-26T16:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Help with percentages</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-percentages/m-p/2419378#M64025</link>
      <description>&lt;P&gt;Can you share a santised pbix file with some example data, your model and what you have so far.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It sounds like you probably just need to include a REMOVEFILTERS inside calculate to prevent the filter context interfering. Hard to be more specific at the moment though.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Mar 2022 20:23:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-percentages/m-p/2419378#M64025</guid>
      <dc:creator>bcdobbs</dc:creator>
      <dc:date>2022-03-26T20:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help with percentages</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-percentages/m-p/2419585#M64038</link>
      <description>&lt;P&gt;Hi Ben&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Due to the confidental data in the pbix I cannot share unfortunetely&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can however show you the table I am getting back at the moment&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Its pulling in the right amount of Miss and Hit data however if I use my filters to try remove the miss data my HIT data auto turns to 100% which is the issue, all I really want is the HIT data percentage displaying so 64.52 for this month 62.96 for last etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Mar 2022 05:37:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-percentages/m-p/2419585#M64038</guid>
      <dc:creator>Neilt</dc:creator>
      <dc:date>2022-03-27T05:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help with percentages</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-percentages/m-p/2419871#M64060</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="371872" data-lia-user-login="Neilt" class="lia-mention lia-mention-user"&gt;Neilt&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This might not be so accurate as I have no idea about your data structure but you may try one of the following&lt;/P&gt;&lt;P&gt;1. You can have a slicer with "HIT", "MISS" and use the following code&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Percentage =
VAR Numerator =
    COUNTROWS ( Table )
VAR Denominator =
    CALCULATE ( COUNTROWS ( Table ), ALLEXCEPT ( Table, Table[Date] ) )
VAR Result =
    DIVIDE ( Numerator, Denominator )
RETURN
    Result&lt;/LI-CODE&gt;&lt;P&gt;The result percentage will be based on the slicer selection. If you select HIT it will give you the percentage of HIT's and same for MISS&lt;/P&gt;&lt;P&gt;2. code for HIT only&lt;/P&gt;&lt;LI-CODE lang="php"&gt;HIT Percentage =
VAR Numerator =
    CALCULATE ( COUNTROWS ( Table ), Table[Hit SLA?] = "HIT" )
VAR Denominator =
    CALCULATE ( COUNTROWS ( Table ), ALLEXCEPT ( Table, Table[Date] ) )
VAR Result =
    DIVIDE ( Numerator, Denominator )
RETURN
    Result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Mar 2022 18:05:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-percentages/m-p/2419871#M64060</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-03-27T18:05:35Z</dc:date>
    </item>
  </channel>
</rss>

