<?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 date vertical reference line for scatter chart in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-vertical-reference-line-for-scatter-chart/m-p/986167#M12151</link>
    <description>&lt;P&gt;That's a very difficult issue&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;. Is your line fixed at a specific date or does it vary based upon slicer selection? I'm not sure it matters but want to ask. Bubble charts do not have Analytics enabled so can't go down that route. Only thing I could think of would be to manufacture points for your bubble chart for many values of Y for the same X and then UNION that onto your table or whatever you are using for your bubble chart but that is a long shot and would require specific circumstances.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample data and such could help determine if this is possible.&amp;nbsp;Please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Mar 2020 02:34:59 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2020-03-23T02:34:59Z</dc:date>
    <item>
      <title>Dynamic date vertical reference line for scatter chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-vertical-reference-line-for-scatter-chart/m-p/986157#M12150</link>
      <description>&lt;P&gt;Hi, I need to add a dynamic, vertical reference line to my scatter chart. My scatter chart has a date (in whole number format) x-axis and a numeric y-axis. Looks like this unfiltered:&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;I need to give my boss a scatter chart that has a vertical reference line that indicates the last date an event occured, this date is in the dataset. It should look something like this: (I overlayed two visuals to illustrate.)&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;I can't overlay two visuals as the final solution because if someone uses the slicers on my page the scatter chart axis will change and the line will not adjust properly, I've tried.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 02:28:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-vertical-reference-line-for-scatter-chart/m-p/986157#M12150</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-23T02:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic date vertical reference line for scatter chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-vertical-reference-line-for-scatter-chart/m-p/986167#M12151</link>
      <description>&lt;P&gt;That's a very difficult issue&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;. Is your line fixed at a specific date or does it vary based upon slicer selection? I'm not sure it matters but want to ask. Bubble charts do not have Analytics enabled so can't go down that route. Only thing I could think of would be to manufacture points for your bubble chart for many values of Y for the same X and then UNION that onto your table or whatever you are using for your bubble chart but that is a long shot and would require specific circumstances.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample data and such could help determine if this is possible.&amp;nbsp;Please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 02:34:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-vertical-reference-line-for-scatter-chart/m-p/986167#M12151</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-03-23T02:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic date vertical reference line for scatter chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-vertical-reference-line-for-scatter-chart/m-p/986189#M12152</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;, thanks so much for your reply! The line is fixed at a specific date.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I will try your proposed solution and see what happens. I had a similar thought when I created a line in a seperate scatter chart using dummy values. I'll be sure to update this thread with the results and sample data if needed.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 02:44:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-vertical-reference-line-for-scatter-chart/m-p/986189#M12152</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-23T02:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic date vertical reference line for scatter chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-vertical-reference-line-for-scatter-chart/m-p/986450#M12154</link>
      <description>&lt;P&gt;The union suggestion works! I have some complex filter logic applied to this report and the line still appears.&amp;nbsp; For anyone who has a similar need, here is what I did.&amp;nbsp;&lt;BR /&gt;1. Create a seperate table for generating values for your line. Here is the code I used:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Line Table = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var tab1 = GENERATESERIES(1,MAX([y-axis variable]),1)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var tab2 = ADDCOLUMNS(tab1,"Reference Date" , [lookup logic for your needed value])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;tab2&lt;BR /&gt;&lt;BR /&gt;2. Union Line Table and your main dataset table&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; The additional columns your Line Table doesn't share will be Blank(), except if you are using slicers. If you don't need slicers you can stop here.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;3. Slicers logic&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;If you want the ability to filter your data and not lose the line, create another table with two columns. The first column contains all true slicer values repeated twice and the second contains true slicer values plus a dummy value (in the example below the dummy value is "Line"). The slicer you add will only show the true values from the first column while still "associating" your line as part of the dataset.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I found this dataset online. I'll use it as an example:&amp;nbsp;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;BR /&gt;Your scatter chart uses this sales data, and you want a line to appear without being impacted by a SalesPerson filter. Create a seperate table like shown below.&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;Create a relationship between Column 2 and SalesPerson from the main table. Then add a slicer to your report using Column 1.&lt;BR /&gt;&lt;BR /&gt;All Done!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 23 Mar 2020 07:00:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-vertical-reference-line-for-scatter-chart/m-p/986450#M12154</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-23T07:00:27Z</dc:date>
    </item>
  </channel>
</rss>

