<?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: Line chart points from columns in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Line-chart-points-from-columns/m-p/2563391#M36548</link>
    <description>&lt;P&gt;Thank you so much! It works as expected now.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jun 2022 09:01:54 GMT</pubDate>
    <dc:creator>crizbe</dc:creator>
    <dc:date>2022-06-07T09:01:54Z</dc:date>
    <item>
      <title>Line chart points from columns</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Line-chart-points-from-columns/m-p/2558041#M36489</link>
      <description>&lt;P&gt;I have the following SharePoint lists:&lt;/P&gt;&lt;P&gt;Plans:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Plan&lt;/TD&gt;&lt;TD&gt;Curve&lt;/TD&gt;&lt;TD&gt;Description&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Plan001&lt;/TD&gt;&lt;TD&gt;Curve001&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Plan002&lt;/TD&gt;&lt;TD&gt;Curve002&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Curves:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Curve&lt;/TD&gt;&lt;TD&gt;ValueA&lt;/TD&gt;&lt;TD&gt;MeasureA&lt;/TD&gt;&lt;TD&gt;ValueB&lt;/TD&gt;&lt;TD&gt;MeasureB&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Curve001&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Curve002&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;80&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A User can select a Plan. When it gets selected, I want to draw a lina chart of the corresponding curve, where the datapoints consist of Value (X-Axis) and Measure (Y-Axis).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I managed to get all the values with either measure column or calculation column. But I am not able to draw the chart. I think it is because each field in curve is also a column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The chart works perfectly when I create a table like this from hand:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Value&lt;/TD&gt;&lt;TD&gt;Measure&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Is there any way to create such a table automatically when a Plan gets selected? Or do you know any other way how I could achieve this?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 13:51:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Line-chart-points-from-columns/m-p/2558041#M36489</guid>
      <dc:creator>crizbe</dc:creator>
      <dc:date>2022-06-03T13:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Line chart points from columns</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Line-chart-points-from-columns/m-p/2559168#M36503</link>
      <description>&lt;P&gt;Yes, usually you would need to unpivot your Curves table&amp;nbsp; - in this case in pairs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What's the importance of "A" and "B" - does that play any role later?&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jun 2022 01:02:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Line-chart-points-from-columns/m-p/2559168#M36503</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-06-05T01:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Line chart points from columns</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Line-chart-points-from-columns/m-p/2559584#M36506</link>
      <description>&lt;P&gt;Thanks, yes A and B are the X and Y Values of each point in the chart&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jun 2022 14:13:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Line-chart-points-from-columns/m-p/2559584#M36506</guid>
      <dc:creator>crizbe</dc:creator>
      <dc:date>2022-06-05T14:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Line chart points from columns</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Line-chart-points-from-columns/m-p/2559809#M36507</link>
      <description>&lt;P&gt;Here is one possible approach&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lbendlin_0-1654477955113.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/727008i348DFA7CC0321230/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lbendlin_0-1654477955113.png" alt="lbendlin_0-1654477955113.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45Wci4tKks1MDBU0lEyNAATINIUxozVgSsxAgoZgcSNQYQJiLAAKogFAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Curve = _t, ValueA = _t, MeasureA = _t, ValueB = _t, MeasureB = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Curve", type text}, {"ValueA", Int64.Type}, {"MeasureA", Int64.Type}, {"ValueB", Int64.Type}, {"MeasureB", Int64.Type}}),
    #"Added Custom" = Table.AddColumn(#"Changed Type", "List", each {{[ValueA],[MeasureA]},{[ValueB],[MeasureB]}}),
    #"Removed Other Columns" = Table.SelectColumns(#"Added Custom",{"Curve", "List"}),
    #"Expanded List" = Table.ExpandListColumn(#"Removed Other Columns", "List"),
    #"Extracted Values" = Table.TransformColumns(#"Expanded List", {"List", each Text.Combine(List.Transform(_, Text.From), "#(tab)"), type text}),
    #"Split Column by Delimiter" = Table.SplitColumn(#"Extracted Values", "List", Splitter.SplitTextByDelimiter("#(tab)", QuoteStyle.Csv), {"x", "y"}),
    #"Changed Type1" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"x", Int64.Type}, {"y", Int64.Type}})
in
    #"Changed Type1"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 01:13:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Line-chart-points-from-columns/m-p/2559809#M36507</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-06-06T01:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Line chart points from columns</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Line-chart-points-from-columns/m-p/2563319#M36542</link>
      <description>&lt;P&gt;Thank you very much. It worked like a charm! I have one slight issue now. How am I able to filter the values now based on selectedValues?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 08:43:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Line-chart-points-from-columns/m-p/2563319#M36542</guid>
      <dc:creator>crizbe</dc:creator>
      <dc:date>2022-06-07T08:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Line chart points from columns</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Line-chart-points-from-columns/m-p/2563328#M36543</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/397249"&gt;@crizbe&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;I agree with&amp;nbsp;&lt;SPAN class=""&gt;lbendlin's reply. Due to we cannot see calculated column or measure created by Dax in Power Query Editor, firstly, you need to calcualte MeasureA and MeasureB by M code in Power Query Editor. Then you can follow &lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;lbendlin's step to&amp;nbsp;unpivot your table.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P data-unlink="true"&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;</description>
      <pubDate>Tue, 07 Jun 2022 08:45:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Line-chart-points-from-columns/m-p/2563328#M36543</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-07T08:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Line chart points from columns</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Line-chart-points-from-columns/m-p/2563369#M36546</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/397249"&gt;@crizbe&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you can create a relationship between Plan table and Curve table by [Curve] column.&lt;/P&gt;
&lt;P&gt;For reference:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-create-and-manage-relationships" target="_self"&gt;Create and manage relationships in Power BI Desktop&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RicoZhou_0-1654591801283.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/727946i6163DFDB52FE2040/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RicoZhou_0-1654591801283.png" alt="RicoZhou_0-1654591801283.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then you can create a slicer by [Plan] column from Plan table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By default:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RicoZhou_1-1654591867645.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/727949iF57DFDC66E30E745/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RicoZhou_1-1654591867645.png" alt="RicoZhou_1-1654591867645.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Select Plan001:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RicoZhou_2-1654591892320.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/727950iA8731A79E41C6149/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RicoZhou_2-1654591892320.png" alt="RicoZhou_2-1654591892320.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Select Plan002:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RicoZhou_3-1654591903170.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/727951iFE7C182954F36F24/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RicoZhou_3-1654591903170.png" alt="RicoZhou_3-1654591903170.png" /&gt;&lt;/span&gt;&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>Tue, 07 Jun 2022 08:52:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Line-chart-points-from-columns/m-p/2563369#M36546</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-07T08:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Line chart points from columns</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Line-chart-points-from-columns/m-p/2563391#M36548</link>
      <description>&lt;P&gt;Thank you so much! It works as expected now.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 09:01:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Line-chart-points-from-columns/m-p/2563391#M36548</guid>
      <dc:creator>crizbe</dc:creator>
      <dc:date>2022-06-07T09:01:54Z</dc:date>
    </item>
  </channel>
</rss>

