<?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 How to create a grade scale for each row with different grading ranges in DAX? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-grade-scale-for-each-row-with-different-grading/m-p/3010114#M102029</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm relatively new to this and I'm trying to figure out if I can do this formula in DAX and configure it onto my dashboard. For each row in my table, I am trying to incorporate a grading system between 1-5 based on what grade a certain program has gotten (1 &amp;lt; 10, 2 is 11-20, 3 is 21-30, etc). I could do conditional formatting for this row, but it would apply to all rows and not be sufficient as every program has&lt;STRONG&gt; different grading ranges&lt;/STRONG&gt;. I have over 1,000+ plus programs with different grading ranges and trying to find the best method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;P&gt;Program A could have a grading scale of&lt;/P&gt;&lt;P&gt;1 (&amp;lt;10)&lt;/P&gt;&lt;P&gt;2 (11-20)&lt;/P&gt;&lt;P&gt;3 (21-30)&lt;/P&gt;&lt;P&gt;4 (31-40)&lt;/P&gt;&lt;P&gt;5 (41-50)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But Program B could have a grading scale of&lt;/P&gt;&lt;P&gt;1 (&amp;lt;15)&lt;/P&gt;&lt;P&gt;2 (16-20)&lt;/P&gt;&lt;P&gt;3 (21-25)&lt;/P&gt;&lt;P&gt;4 (26-31)&lt;/P&gt;&lt;P&gt;5 (32-35)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way I could format each row with its own set of ranges without formatting all the other rows? How do I even approach this? Thank you so much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jan 2023 02:02:11 GMT</pubDate>
    <dc:creator>teepee3234</dc:creator>
    <dc:date>2023-01-10T02:02:11Z</dc:date>
    <item>
      <title>How to create a grade scale for each row with different grading ranges in DAX?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-grade-scale-for-each-row-with-different-grading/m-p/3010114#M102029</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm relatively new to this and I'm trying to figure out if I can do this formula in DAX and configure it onto my dashboard. For each row in my table, I am trying to incorporate a grading system between 1-5 based on what grade a certain program has gotten (1 &amp;lt; 10, 2 is 11-20, 3 is 21-30, etc). I could do conditional formatting for this row, but it would apply to all rows and not be sufficient as every program has&lt;STRONG&gt; different grading ranges&lt;/STRONG&gt;. I have over 1,000+ plus programs with different grading ranges and trying to find the best method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;P&gt;Program A could have a grading scale of&lt;/P&gt;&lt;P&gt;1 (&amp;lt;10)&lt;/P&gt;&lt;P&gt;2 (11-20)&lt;/P&gt;&lt;P&gt;3 (21-30)&lt;/P&gt;&lt;P&gt;4 (31-40)&lt;/P&gt;&lt;P&gt;5 (41-50)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But Program B could have a grading scale of&lt;/P&gt;&lt;P&gt;1 (&amp;lt;15)&lt;/P&gt;&lt;P&gt;2 (16-20)&lt;/P&gt;&lt;P&gt;3 (21-25)&lt;/P&gt;&lt;P&gt;4 (26-31)&lt;/P&gt;&lt;P&gt;5 (32-35)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way I could format each row with its own set of ranges without formatting all the other rows? How do I even approach this? Thank you so much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 02:02:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-grade-scale-for-each-row-with-different-grading/m-p/3010114#M102029</guid>
      <dc:creator>teepee3234</dc:creator>
      <dc:date>2023-01-10T02:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a grade scale for each row with different grading ranges in DAX?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-grade-scale-for-each-row-with-different-grading/m-p/3010271#M102038</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="496526" data-lia-user-login="teepee3234" class="lia-mention lia-mention-user"&gt;teepee3234&lt;/a&gt; , You can a new column like &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Switch ( [Program],&lt;BR /&gt;"A" ,Switch ( True() ,&lt;BR /&gt;[Scale] &amp;lt;10, "1",&lt;BR /&gt;[Scale] &amp;lt;20, "2",&lt;BR /&gt;[Scale] &amp;lt;30, "3",&lt;BR /&gt;[Scale] &amp;lt;40, "4",&lt;BR /&gt;[Scale] &amp;lt;50, "5"),&lt;BR /&gt;"B" ,Switch ( True() ,&lt;BR /&gt;[Scale] &amp;lt;15, "1",&lt;BR /&gt;[Scale] &amp;lt;20, "2",&lt;BR /&gt;[Scale] &amp;lt;25, "3",&lt;BR /&gt;[Scale] &amp;lt;31, "4",&lt;BR /&gt;[Scale] &amp;lt;35, "5")&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Change as per need&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 03:34:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-grade-scale-for-each-row-with-different-grading/m-p/3010271#M102038</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2023-01-10T03:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a grade scale for each row with different grading ranges in DAX?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-grade-scale-for-each-row-with-different-grading/m-p/3012890#M102211</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="496526" data-lia-user-login="teepee3234" class="lia-mention lia-mention-user"&gt;teepee3234&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create calculated column.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Flag =
IF(
   'Table'[Program]="ProgramA" ,
   SWITCH(
       TRUE(),
       'Table'[Grade]&amp;lt;10,1,
       'Table'[Grade]&amp;gt;=11&amp;amp;&amp;amp;'Table'[Grade]&amp;lt;=20,2,
       'Table'[Grade]&amp;gt;=21&amp;amp;&amp;amp;'Table'[Grade]&amp;lt;=30,3,
       'Table'[Grade]&amp;gt;=31&amp;amp;&amp;amp;'Table'[Grade]&amp;lt;=40,4,
       'Table'[Grade]&amp;gt;=41&amp;amp;&amp;amp;'Table'[Grade]&amp;lt;=50,5),
 SWITCH(
       TRUE(),
       'Table'[Grade]&amp;lt;15,1,
       'Table'[Grade]&amp;gt;=16&amp;amp;&amp;amp;'Table'[Grade]&amp;lt;=20,2,
       'Table'[Grade]&amp;gt;=21&amp;amp;&amp;amp;'Table'[Grade]&amp;lt;=25,3,
       'Table'[Grade]&amp;gt;=26&amp;amp;&amp;amp;'Table'[Grade]&amp;lt;31,4,
       'Table'[Grade]&amp;gt;=32&amp;amp;&amp;amp;'Table'[Grade]&amp;lt;=35,5))&lt;/LI-CODE&gt;
&lt;P&gt;2. Result:&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;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 05:38:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-grade-scale-for-each-row-with-different-grading/m-p/3012890#M102211</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-11T05:38:29Z</dc:date>
    </item>
  </channel>
</rss>

