<?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: Create comparison chart using two Date Slicer in single Line Chart in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Create-comparison-chart-using-two-Date-Slicer-in-single-Line/m-p/2981247#M40411</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/489084"&gt;@Shloka_Lakhani&lt;/a&gt;&amp;nbsp;，&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power BI only support us to show tooltips from one visual. As far as I know, you don't need to overlap two line charts to achieve your goal. Here Iauggest you to calculate two lined by measures and create two unrelated date tables for slicer.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Line 1 =
VAR _SelectDate =
    VALUES ( 'Date'[Date] )
RETURN
    CALCULATE (
        SUM ( 'TableName'[Value] ),
        FILTER ( 'TableName', 'TableName'[Date] IN _SelectDate )
    )&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Line 2 =
VAR _SelectDate =
    VALUES ( 'Comparison Date'[Date] )
RETURN
    CALCULATE (
        SUM ( 'TableName'[Value] ),
        FILTER ( 'TableName', 'TableName'[Date] IN _SelectDate )
    )&lt;/LI-CODE&gt;
&lt;P&gt;Add these measures into Y axis and then you can see tooltips at the same time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Dec 2022 09:28:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-12-21T09:28:01Z</dc:date>
    <item>
      <title>Create comparison chart using two Date Slicer in single Line Chart</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Create-comparison-chart-using-two-Date-Slicer-in-single-Line/m-p/2978905#M40396</link>
      <description>&lt;P&gt;Compare two custom date slicers into a single visual for line chart.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also tried as below steps:&lt;/P&gt;&lt;P&gt;1) Created two Date slicer for Comparision Date and Custom Date.&lt;/P&gt;&lt;P&gt;2) Overlapped two line charts in the below screenshot.&lt;BR /&gt;3) Gave interaction to the respected line charts. So while selecting Dates from Comparison Date slicer only the Red line chart will be synchronised. And same way while selecting Dates from Date Slicer only the Blue line chart will be&amp;nbsp;synchronised.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Shloka_Lakhani_2-1671536898741.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/843702i42BD64B496E834C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Shloka_Lakhani_2-1671536898741.png" alt="Shloka_Lakhani_2-1671536898741.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Now, we want to show tooltip for the both lines at same point on hover.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 11:53:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Create-comparison-chart-using-two-Date-Slicer-in-single-Line/m-p/2978905#M40396</guid>
      <dc:creator>Shloka_Lakhani</dc:creator>
      <dc:date>2022-12-20T11:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: Create comparison chart using two Date Slicer in single Line Chart</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Create-comparison-chart-using-two-Date-Slicer-in-single-Line/m-p/2981247#M40411</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/489084"&gt;@Shloka_Lakhani&lt;/a&gt;&amp;nbsp;，&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power BI only support us to show tooltips from one visual. As far as I know, you don't need to overlap two line charts to achieve your goal. Here Iauggest you to calculate two lined by measures and create two unrelated date tables for slicer.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Line 1 =
VAR _SelectDate =
    VALUES ( 'Date'[Date] )
RETURN
    CALCULATE (
        SUM ( 'TableName'[Value] ),
        FILTER ( 'TableName', 'TableName'[Date] IN _SelectDate )
    )&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Line 2 =
VAR _SelectDate =
    VALUES ( 'Comparison Date'[Date] )
RETURN
    CALCULATE (
        SUM ( 'TableName'[Value] ),
        FILTER ( 'TableName', 'TableName'[Date] IN _SelectDate )
    )&lt;/LI-CODE&gt;
&lt;P&gt;Add these measures into Y axis and then you can see tooltips at the same time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 09:28:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Create-comparison-chart-using-two-Date-Slicer-in-single-Line/m-p/2981247#M40411</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-21T09:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Create comparison chart using two Date Slicer in single Line Chart</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Create-comparison-chart-using-two-Date-Slicer-in-single-Line/m-p/2982004#M40418</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Hi @Anonymous&lt;/a&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for quick response. &lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We want to achieve below in Power BI &lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Dark Blue Line : Represents Nov Month Data &lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Light Blue Line : Represents Oct Month Data &lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Range we can compare : Pre. Month &lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Pre Year &lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Pre Quarter&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Last 7 Days&amp;nbsp; and custom date&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Shloka_Lakhani_0-1671631727966.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/844538i89575C5D023BFDD1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Shloka_Lakhani_0-1671631727966.png" alt="Shloka_Lakhani_0-1671631727966.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Solution you have provided is giving continue line for both the period instead of overlapping lines for both periods we are trying to compare. Please find the chart below based on your solution.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Shloka_Lakhani_1-1671631727976.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/844540i445FA356A6E9939E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Shloka_Lakhani_1-1671631727976.png" alt="Shloka_Lakhani_1-1671631727976.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you can help us with the solution where we can compare the two custom periods on a line chart.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please find attached sample data set below:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Shloka_Lakhani_2-1671631727978.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/844539i4F24E40D5460B1CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Shloka_Lakhani_2-1671631727978.png" alt="Shloka_Lakhani_2-1671631727978.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 14:10:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Create-comparison-chart-using-two-Date-Slicer-in-single-Line/m-p/2982004#M40418</guid>
      <dc:creator>Shloka_Lakhani</dc:creator>
      <dc:date>2022-12-21T14:10:01Z</dc:date>
    </item>
  </channel>
</rss>

