<?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: Tablular data to calculate quality accuracy in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tablular-data-to-calculate-quality-accuracy/m-p/2716873#M82726</link>
    <description>&lt;P&gt;can anyone support please&lt;/P&gt;</description>
    <pubDate>Mon, 22 Aug 2022 11:55:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-08-22T11:55:48Z</dc:date>
    <item>
      <title>Tablular data to calculate quality accuracy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tablular-data-to-calculate-quality-accuracy/m-p/2713832#M82527</link>
      <description>&lt;P&gt;I need a support in both of power query and DAX in the below and highlight to me which scenario is the best to use in terms of performance and simplicity.&lt;/P&gt;&lt;P&gt;I have a tabular data where each index represents transaction evaluation against specific attributes, and I need to calculate quality accuracy per severity as follow&lt;/P&gt;&lt;P&gt;EU = 100%-(count of scores /unique index) considering the below condition:&lt;/P&gt;&lt;P&gt;count of scores per index where severity is EU and incase there is more than score 1 within the same transaction index, it must be counted only one (by other means, if any transaction index with the severity of EU failed (score 1), should reflect only one per this index)&lt;/P&gt;&lt;P&gt;The same goes for BC and CC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For NC, it should be calculated on attribute level&lt;/P&gt;&lt;P&gt;NC=100%-(count of score 1 /unique attribute per each index) considering the below condition:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;count of scores per attribute where severity is NC and incase there is more than score 1 within the same attribute and same index, it should be count only 1 ((by other means, if any transaction index with the severity of EU with the same attribute failed (score 1), should reflect only one per this index)&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;</description>
      <pubDate>Sat, 20 Aug 2022 08:48:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tablular-data-to-calculate-quality-accuracy/m-p/2713832#M82527</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-20T08:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Tablular data to calculate quality accuracy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tablular-data-to-calculate-quality-accuracy/m-p/2713990#M82551</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Great, but could you please give a simplified picture of what you want to do but still representative? It would really be nice if you could trim down the data set to what's essential and show the calculations "in slow motion," so to speak. Then it'll be easier for us to assist you. For the time being, the description is not the easiest to understand.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Aug 2022 13:23:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tablular-data-to-calculate-quality-accuracy/m-p/2713990#M82551</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-08-20T13:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Tablular data to calculate quality accuracy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tablular-data-to-calculate-quality-accuracy/m-p/2715020#M82629</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="349489" data-lia-user-login="daXtreme" class="lia-mention lia-mention-user"&gt;daXtreme&lt;/a&gt;&amp;nbsp;thanks for trying to support me and it's my bad to explain. i tried to make it simple as much as i can.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the below is the data that i need to calculate from to produce the 2nd table with a certain condidtions&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table Data&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;This is advisor evaluation score card definition&lt;/P&gt;&lt;P&gt;Transaction: transaction number&lt;/P&gt;&lt;P&gt;Advisor ID : advisor ref. number in system&lt;/P&gt;&lt;P&gt;Severity : severity of scored evaluation&lt;/P&gt;&lt;P&gt;Attribute : score evaluation category&lt;/P&gt;&lt;P&gt;Sub=attribute : score evaluation sub-category&lt;/P&gt;&lt;P&gt;Score : 1 means fail, and blank means Pass&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just need to extract the below table or to be a measure so i can use it per any dimension (date, agent...)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Conditions&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;With the below considerations&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EC : whenever there is failed attribute within the same transaction, it should be calculated as one regarding the number of failed attributes&lt;/P&gt;&lt;P&gt;NC : it is the opposite, it counted based on attributes level so whenever there is failed attributes, it should be counted. But if advisor failed 2 sub-attributes in the same attribute, it should be counted as 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Aug 2022 16:25:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tablular-data-to-calculate-quality-accuracy/m-p/2715020#M82629</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-21T16:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Tablular data to calculate quality accuracy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tablular-data-to-calculate-quality-accuracy/m-p/2716873#M82726</link>
      <description>&lt;P&gt;can anyone support please&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 11:55:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tablular-data-to-calculate-quality-accuracy/m-p/2716873#M82726</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-22T11:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Tablular data to calculate quality accuracy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tablular-data-to-calculate-quality-accuracy/m-p/2719147#M82849</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I want to confirm some information with you.&lt;/P&gt;
&lt;P&gt;1. You want to get table 2 from table1, is right?&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2. could you give me more detailed descriptions about how to calculate for "EC" and "NC"&lt;/P&gt;
&lt;P&gt;for below descriptions, i cannot understand the calculate logic absolutely, could you please give me a calculate sample?&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your efforts &amp;amp; time in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_ Binbin Yu&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 07:07:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tablular-data-to-calculate-quality-accuracy/m-p/2719147#M82849</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-23T07:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Tablular data to calculate quality accuracy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tablular-data-to-calculate-quality-accuracy/m-p/2729626#M83545</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp; thanks for your support&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EC calculation = 1-(failed EC / total transactions)&amp;nbsp; if one attribute failed within the same transaction, it should be considered as only one&lt;/P&gt;&lt;P&gt;NC calculation = 1-( Failed NC / total transactions)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 19:05:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tablular-data-to-calculate-quality-accuracy/m-p/2729626#M83545</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-26T19:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Tablular data to calculate quality accuracy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tablular-data-to-calculate-quality-accuracy/m-p/2740245#M84189</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please&amp;nbsp; try below steps:&lt;/P&gt;
&lt;P&gt;1. beow is my test table, according to your descriptions to create&lt;/P&gt;
&lt;P&gt;Table:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2. create two measure and add it to table visual&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;EC =
VAR cur_trans =
    SELECTEDVALUE ( 'Table'[Transaction] )
VAR tmp =
    FILTER (
        ALL ( 'Table' ),
        'Table'[Transaction] = cur_trans
            &amp;amp;&amp;amp; 'Table'[Score] = 1
            &amp;amp;&amp;amp; 'Table'[Severity] = "EU"
    )
VAR tmp1 =
    SUMMARIZE ( tmp, [Transaction], "Avg for Score", AVERAGE ( [Score] ) )
RETURN
    COUNTROWS ( tmp1 )
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;NC =
VAR cur_trans =
    SELECTEDVALUE ( 'Table'[Transaction] )
VAR tmp =
    FILTER (
        ALL ( 'Table' ),
        'Table'[Transaction] = cur_trans
            &amp;amp;&amp;amp; 'Table'[Score] = 1
            &amp;amp;&amp;amp; 'Table'[Severity] = "NC"
    )
VAR tmp1 =
    SUMMARIZE (
        tmp,
        [Advisor ID],
        [Attribute],
        "Avg for Score", AVERAGE ( [Score] )
    )
RETURN
    COUNTROWS ( tmp1 )
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Please refer the attached .pbix file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_ Binbin Yu&lt;BR /&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 09:12:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tablular-data-to-calculate-quality-accuracy/m-p/2740245#M84189</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-01T09:12:58Z</dc:date>
    </item>
  </channel>
</rss>

