<?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: Curve color depending on its position relative to another in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Curve-color-depending-on-its-position-relative-to-another/m-p/3327854#M30482</link>
    <description>&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;However it looks like I simplified my problem too much.&lt;/P&gt;&lt;P&gt;Here is what happens when I try this with a bigger sample:&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1Wu9sA-RC1LSXBm5Yc6aJ4uNi2XJq21Di/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/1Wu9sA-RC1LSXBm5Yc6aJ4uNi2XJq21Di/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If one point is below Val1 and the following point is above, there is no line between the two, so I added an orange line behind the green and the red.&lt;/P&gt;&lt;P&gt;Sometimes I don't have value for val1 corresponding to the date of the val2 value, so I tried to change the condition of display: rather than comparing val1 and val2 at each date, I only want to compare them at the last date, when I have both val1 and val2.&lt;/P&gt;&lt;P&gt;Yet I haven't found a good solution, the LASTNONBLANK functions looks bad...&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jul 2023 16:19:01 GMT</pubDate>
    <dc:creator>Jules_</dc:creator>
    <dc:date>2023-07-12T16:19:01Z</dc:date>
    <item>
      <title>Curve color depending on its position relative to another</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Curve-color-depending-on-its-position-relative-to-another/m-p/3320009#M30430</link>
      <description>&lt;P&gt;I have 2 series of values: val1 and val2, and a column with dates. I want to show a graph with a date x-axis, and the 2 curves corresponding to val1 and val2. The 2nd curve should be red if below curve1 and green if above.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first solution I came with is to create 2 columns corresponding to val2 in my database: val2_up would have the same value as val2 if above val1, and would be NULL if below val1. Similarly, val2_down&amp;nbsp;would have the same value as val2 if below val1, and would be NULL if above val1.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem if I choose this solution is that I cannot add filters on family, category and type. Actually I could, but as PowerBI computes the total, If I choose to show for example only family1, it would compute 2 totals: the first with every values below val1 and the 2nd with every value above val1. Thus it would show 2 curves for val2,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;whereas I would only want 1:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;If you have any other idea, I would appreciate if you could share it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 08:17:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Curve-color-depending-on-its-position-relative-to-another/m-p/3320009#M30430</guid>
      <dc:creator>Jules_</dc:creator>
      <dc:date>2023-07-07T08:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Curve color depending on its position relative to another</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Curve-color-depending-on-its-position-relative-to-another/m-p/3324090#M30463</link>
      <description>&lt;P&gt;I don't see curves, only straight lines.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). &lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 00:30:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Curve-color-depending-on-its-position-relative-to-another/m-p/3324090#M30463</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-07-11T00:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Curve color depending on its position relative to another</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Curve-color-depending-on-its-position-relative-to-another/m-p/3325181#M30468</link>
      <description>&lt;P&gt;Correct, I want a line chart, not a curve graph. Sorry for the confusion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a link to google drive. I uploaded the sample data that I used to get the powerBI visualization above.&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1Wu9sA-RC1LSXBm5Yc6aJ4uNi2XJq21Di/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/1Wu9sA-RC1LSXBm5Yc6aJ4uNi2XJq21Di/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want these outcomes:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&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>Tue, 11 Jul 2023 12:08:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Curve-color-depending-on-its-position-relative-to-another/m-p/3325181#M30468</guid>
      <dc:creator>Jules_</dc:creator>
      <dc:date>2023-07-11T12:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Curve color depending on its position relative to another</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Curve-color-depending-on-its-position-relative-to-another/m-p/3326160#M30473</link>
      <description>&lt;P&gt;If the lines have different slope then they must intersect somewhere in Cartesian Space. That means you can end up in situations where you need to render a red and a green segment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, you were close. See attached.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 00:02:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Curve-color-depending-on-its-position-relative-to-another/m-p/3326160#M30473</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-07-12T00:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Curve color depending on its position relative to another</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Curve-color-depending-on-its-position-relative-to-another/m-p/3327854#M30482</link>
      <description>&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;However it looks like I simplified my problem too much.&lt;/P&gt;&lt;P&gt;Here is what happens when I try this with a bigger sample:&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1Wu9sA-RC1LSXBm5Yc6aJ4uNi2XJq21Di/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/1Wu9sA-RC1LSXBm5Yc6aJ4uNi2XJq21Di/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If one point is below Val1 and the following point is above, there is no line between the two, so I added an orange line behind the green and the red.&lt;/P&gt;&lt;P&gt;Sometimes I don't have value for val1 corresponding to the date of the val2 value, so I tried to change the condition of display: rather than comparing val1 and val2 at each date, I only want to compare them at the last date, when I have both val1 and val2.&lt;/P&gt;&lt;P&gt;Yet I haven't found a good solution, the LASTNONBLANK functions looks bad...&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 16:19:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Curve-color-depending-on-its-position-relative-to-another/m-p/3327854#M30482</guid>
      <dc:creator>Jules_</dc:creator>
      <dc:date>2023-07-12T16:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Curve color depending on its position relative to another</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Curve-color-depending-on-its-position-relative-to-another/m-p/3327889#M30483</link>
      <description>&lt;P&gt;You may want to go back into your thinking corner and work on providing sample data that fully covers all your scenarios.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 16:56:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Curve-color-depending-on-its-position-relative-to-another/m-p/3327889#M30483</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-07-12T16:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Curve color depending on its position relative to another</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Curve-color-depending-on-its-position-relative-to-another/m-p/3329735#M30506</link>
      <description>&lt;P&gt;Here is the solution I found :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/14Du9Q5tZoDLIdWKZI9F1qL9m5RyI9GuV/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/14Du9Q5tZoDLIdWKZI9F1qL9m5RyI9GuV/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to add two columns in my database : val1_last and val2_last, and create 2 measures val2_over and val2_under in powerBI, which are basically the value of val2 if val2_last &amp;gt; val1_last and val2_last &amp;lt; val1_last, else null. With this solution, I would only get the last value of val2 respect the condition.&lt;/P&gt;&lt;P&gt;I entirely filled&amp;nbsp;val1_last and val2_last columns with the last values, even if the date did not correspond to solve the issue.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 15:23:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Curve-color-depending-on-its-position-relative-to-another/m-p/3329735#M30506</guid>
      <dc:creator>Jules_</dc:creator>
      <dc:date>2023-07-13T15:23:17Z</dc:date>
    </item>
  </channel>
</rss>

