<?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: Dynamic formatting of line chart points in spc chart in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-formatting-of-line-chart-points-in-spc-chart/m-p/3129443#M111279</link>
    <description>&lt;P&gt;Great to hear my solution worked for you!&lt;/P&gt;</description>
    <pubDate>Tue, 14 Mar 2023 01:01:58 GMT</pubDate>
    <dc:creator>ichavarria</dc:creator>
    <dc:date>2023-03-14T01:01:58Z</dc:date>
    <item>
      <title>Dynamic formatting of line chart points in spc chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-formatting-of-line-chart-points-in-spc-chart/m-p/3114686#M110235</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attempting to construct an SPC chart in Power BI which charts Activity, Average Activity, Upper Limit (+3 stddev) and Lower limit (- 3 std dev) over time (months). For any given month, if the activity is above the upper or below the lower limit, that point on the graph needs to be a different colour. This all needs to be dynamic as the data is selected via a slicer. My issue is therefore comparing the measures (limits) with actual row values. Can anyone advise on how to achieve this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 18:11:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-formatting-of-line-chart-points-in-spc-chart/m-p/3114686#M110235</guid>
      <dc:creator>DotsAndSpots</dc:creator>
      <dc:date>2023-03-06T18:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic formatting of line chart points in spc chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-formatting-of-line-chart-points-in-spc-chart/m-p/3114927#M110260</link>
      <description>&lt;P&gt;To compare the activity measure with the upper and lower limits, you can create two additional measures in your dataset for the upper and lower limits using the following DAX expressions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Upper Limit = AVERAGE(Activity) + 3 * STDEV.P(Activity)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lower Limit = AVERAGE(Activity) - 3 * STDEV.P(Activity)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, you can create a line chart visual in Power BI with months on the x-axis and activity on the y-axis. Add the Average Activity measure as a line series on the chart, and add Upper Limit and Lower Limit as additional line series.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To highlight the points above the upper limit or below the lower limit, you can use conditional formatting. Click on the visual and go to the "Visualizations" pane. Under "Data colors," select "Background color" and choose "Advanced controls." Use the following expression to define the color for the data points above the upper limit:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;= IF([Activity] &amp;gt; [Upper Limit], "Red", "White")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use a similar expression to define the color for data points below the lower limit:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;= IF([Activity] &amp;lt; [Lower Limit], "Red", "White")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will highlight any data points above or below the limits in red, while leaving the rest of the points white.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards,&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/isaac-chavarria-artavia-38b982184/" target="_self" rel="nofollow noopener noreferrer"&gt;Isaac Chavarria&amp;nbsp;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;SPAN&gt;, then please consider&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;it as the solution&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;to help the other members find it more quickly&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 20:57:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-formatting-of-line-chart-points-in-spc-chart/m-p/3114927#M110260</guid>
      <dc:creator>ichavarria</dc:creator>
      <dc:date>2023-03-06T20:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic formatting of line chart points in spc chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-formatting-of-line-chart-points-in-spc-chart/m-p/3118444#M110481</link>
      <description>&lt;P&gt;Hi Isaac,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks you, your explanation was perfect, though I did have an issue with using the activity for comparison but got around it by creating a measure.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 10:13:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-formatting-of-line-chart-points-in-spc-chart/m-p/3118444#M110481</guid>
      <dc:creator>DotsAndSpots</dc:creator>
      <dc:date>2023-03-08T10:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic formatting of line chart points in spc chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-formatting-of-line-chart-points-in-spc-chart/m-p/3129443#M111279</link>
      <description>&lt;P&gt;Great to hear my solution worked for you!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 01:01:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-formatting-of-line-chart-points-in-spc-chart/m-p/3129443#M111279</guid>
      <dc:creator>ichavarria</dc:creator>
      <dc:date>2023-03-14T01:01:58Z</dc:date>
    </item>
  </channel>
</rss>

