<?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: Help needed to identify the threshold in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-needed-to-identify-the-threshold/m-p/3412414#M129013</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="501067" data-lia-user-login="Sahir_Maharaj" class="lia-mention lia-mention-user"&gt;Sahir_Maharaj&lt;/a&gt;&amp;nbsp;Thanks for your response; I will test it out and let you know. In addition, just wanted to know how can I use the colorindicator as Slicer value( Red, Green, Yellow)? If I select Red and yellow then only red and yellow will be visible, Green cell value will not be shown?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 03 Sep 2023 04:53:28 GMT</pubDate>
    <dc:creator>sdg1393</dc:creator>
    <dc:date>2023-09-03T04:53:28Z</dc:date>
    <item>
      <title>Help needed to identify the threshold</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-needed-to-identify-the-threshold/m-p/3411681#M128969</link>
      <description>&lt;P&gt;Hi, &amp;nbsp;I need a design and DAX help for the following requirement -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two tables - one is master table with kpi id, category, kpi name and threshold value lower and threshold value upper and type&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example (table structure - kpi id, category, koi name, threshold lower, threahold max, type)&lt;/P&gt;&lt;P&gt;1, Training, completion, 86, 90, Increasing&lt;/P&gt;&lt;P&gt;2, Training, Trend, 65, 85, decreasing&lt;/P&gt;&lt;P&gt;3, Audit, timeliness, 70,80, Increasing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now I have a summary table with month wise value of all KPIs Like kpi id, year, month, numerator, denominator, level1, level2&lt;/P&gt;&lt;P&gt;Kpi id is the key to relation between two tables-&amp;nbsp;&lt;/P&gt;&lt;P&gt;1, 2023, april, 1, 1, Enterprise, HR&lt;/P&gt;&lt;P&gt;1, 2023, april, 10,10, Enterprise, Finance&lt;/P&gt;&lt;P&gt;2, 2023, april, 4,5, Enterprise, HR&lt;/P&gt;&lt;P&gt;2, 2023,april, 2,5, Enterprise, Finance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a slicer for Year , Month and Level1 and Level2&lt;/P&gt;&lt;P&gt;&amp;nbsp;the requirement is - If I select year, month and Level 1 then for It will calculate [sum numerator / sum denominator]*100 (named as PercentCalc) for each Kpi id and that kpi id will match with kpi master table to get the threshold and compare the of sum value (&amp;gt;=, &amp;lt;=). Here it will be 11/11&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if I select year, month, level1 and Level2.. sum&amp;nbsp;will take till level2 for kpi id 2, it will be 4/5 or 2/5 based on level 2 selection&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the reason of increasing and decreasing type is if it's increasing and sum calculation value is &amp;gt;0 and &amp;lt;threshold lower then color Red if it's decreasing and&amp;nbsp;&lt;SPAN&gt;sum calculation value is &amp;gt;0 and &amp;lt;threshold lower then it's green.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I need a pivot table with yearmonth,KPi name, percent cal and background color as Red, Yellow, Green&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;need help how to proceed with the approach?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 23:28:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-needed-to-identify-the-threshold/m-p/3411681#M128969</guid>
      <dc:creator>sdg1393</dc:creator>
      <dc:date>2023-09-01T23:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed to identify the threshold</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-needed-to-identify-the-threshold/m-p/3412165#M128994</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="611649" data-lia-user-login="sdg1393" class="lia-mention lia-mention-user"&gt;sdg1393&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please try this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&lt;SPAN&gt;Ensure that you have established a relationship between the master table and the summary table based on the "Kpi id" field&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Calculate the Percent Calculation&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;PercentCalc = DIVIDE(SUM(Summary[numerator]), SUM(Summary[denominator])) * 100&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;3.&amp;nbsp;Identify whether the KPI is Increasing or Decreasing&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;KPIType = SELECTEDVALUE(Master[type])&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;4.&amp;nbsp;Create Conditional Formatting Rules&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;WithinThreshold = 
SWITCH(
   TRUE(),
   [PercentCalc] &amp;gt;= SELECTEDVALUE(Master[threshold lower]) &amp;amp;&amp;amp; [PercentCalc] &amp;lt;= SELECTEDVALUE(Master[threshold max]), 1,
   0
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;5.&amp;nbsp;Create another measure to assign a color based on the KPI type and whether the value is within the threshold range&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ColorIndicator = 
SWITCH(
   TRUE(),
   [KPIType] = "Increasing" &amp;amp;&amp;amp; [WithinThreshold] = 1, "Green",
   [KPIType] = "Decreasing" &amp;amp;&amp;amp; [WithinThreshold] = 1, "Red",
   "Yellow"
)&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 02 Sep 2023 20:03:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-needed-to-identify-the-threshold/m-p/3412165#M128994</guid>
      <dc:creator>Sahir_Maharaj</dc:creator>
      <dc:date>2023-09-02T20:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed to identify the threshold</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-needed-to-identify-the-threshold/m-p/3412414#M129013</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="501067" data-lia-user-login="Sahir_Maharaj" class="lia-mention lia-mention-user"&gt;Sahir_Maharaj&lt;/a&gt;&amp;nbsp;Thanks for your response; I will test it out and let you know. In addition, just wanted to know how can I use the colorindicator as Slicer value( Red, Green, Yellow)? If I select Red and yellow then only red and yellow will be visible, Green cell value will not be shown?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Sep 2023 04:53:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-needed-to-identify-the-threshold/m-p/3412414#M129013</guid>
      <dc:creator>sdg1393</dc:creator>
      <dc:date>2023-09-03T04:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed to identify the threshold</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-needed-to-identify-the-threshold/m-p/3416577#M129291</link>
      <description>&lt;P&gt;Thanks for your help, I applied the logic and it works for me , need to do a data validation though. Could you please help me on another item on this -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the matrix shown in Red, Green, Yellow color.Now I need a slicer that will show Red, Green and Yellow. If I select Red , the matrix will show only data with Red color and ither cell value will be grey out/ not visible, if I select Green it will show data for green, if I select both Red and Green only those colors data will be visible , rest of the data will be greyed out. Since the color indocator is a measure I can't use it as a slicer so I create a color table and wanted to create a measure that will decide based on the above selection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could you please help how to achieve on this? Thanks again for your valuable inputs&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 22:38:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-needed-to-identify-the-threshold/m-p/3416577#M129291</guid>
      <dc:creator>sdg1393</dc:creator>
      <dc:date>2023-09-05T22:38:15Z</dc:date>
    </item>
  </channel>
</rss>

