<?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: Calculation from Spotfire to Power BI in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Calculation-from-Spotfire-to-Power-BI/m-p/2363457#M34664</link>
    <description>&lt;P&gt;Hi @Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Add a custom column:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vlianlmsft_0-1646017441083.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/676305iC48548EAE3EA73D5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vlianlmsft_0-1646017441083.png" alt="Vlianlmsft_0-1646017441083.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2. Filter on TRUE.&lt;/P&gt;
&lt;P&gt;3. Remove the custom column.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vlianlmsft_1-1646017487405.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/676306iA2492198F5823E3C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vlianlmsft_1-1646017487405.png" alt="Vlianlmsft_1-1646017487405.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("TYxLDoAwCAXvwrokBUXrWUgX9Xf/IwgaIrvJm8lThQEFuDIhoQQyNuhFYY9hwjVwsczdEYPgFjhb5u78BrZPkmC2zuX1D1RT+Mo7yZYkQ+8P", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Task = _t, Start = _t, End = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Task", type text}, {"Start", type date}, {"End", type date}}),
    #"Added Custom" = Table.AddColumn(#"Changed Type", "Custom", each [Start]&amp;gt;=[End]),
    #"Filtered Rows" = Table.SelectRows(#"Added Custom", each ([Custom] = true)),
    #"Removed Columns" = Table.RemoveColumns(#"Filtered Rows",{"Custom"})
in
    #"Removed Columns"&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Liang&lt;BR /&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>Mon, 28 Feb 2022 03:05:05 GMT</pubDate>
    <dc:creator>V-lianl-msft</dc:creator>
    <dc:date>2022-02-28T03:05:05Z</dc:date>
    <item>
      <title>Calculation from Spotfire to Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Calculation-from-Spotfire-to-Power-BI/m-p/2357615#M34602</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have calculation in the spotfire mentioning below.I have two columns Start date and End Date and need to filter based on the condition.&lt;/P&gt;&lt;P&gt;Transformation - Filtered Rows&lt;/P&gt;&lt;P&gt;[Start Date]&amp;gt;= [End Date]&lt;/P&gt;&lt;P&gt;I need to convert this calculation in Power BI Query Editor.&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 04:54:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Calculation-from-Spotfire-to-Power-BI/m-p/2357615#M34602</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-24T04:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation from Spotfire to Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Calculation-from-Spotfire-to-Power-BI/m-p/2363457#M34664</link>
      <description>&lt;P&gt;Hi @Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Add a custom column:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vlianlmsft_0-1646017441083.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/676305iC48548EAE3EA73D5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vlianlmsft_0-1646017441083.png" alt="Vlianlmsft_0-1646017441083.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2. Filter on TRUE.&lt;/P&gt;
&lt;P&gt;3. Remove the custom column.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vlianlmsft_1-1646017487405.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/676306iA2492198F5823E3C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vlianlmsft_1-1646017487405.png" alt="Vlianlmsft_1-1646017487405.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("TYxLDoAwCAXvwrokBUXrWUgX9Xf/IwgaIrvJm8lThQEFuDIhoQQyNuhFYY9hwjVwsczdEYPgFjhb5u78BrZPkmC2zuX1D1RT+Mo7yZYkQ+8P", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Task = _t, Start = _t, End = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Task", type text}, {"Start", type date}, {"End", type date}}),
    #"Added Custom" = Table.AddColumn(#"Changed Type", "Custom", each [Start]&amp;gt;=[End]),
    #"Filtered Rows" = Table.SelectRows(#"Added Custom", each ([Custom] = true)),
    #"Removed Columns" = Table.RemoveColumns(#"Filtered Rows",{"Custom"})
in
    #"Removed Columns"&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Liang&lt;BR /&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>Mon, 28 Feb 2022 03:05:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Calculation-from-Spotfire-to-Power-BI/m-p/2363457#M34664</guid>
      <dc:creator>V-lianl-msft</dc:creator>
      <dc:date>2022-02-28T03:05:05Z</dc:date>
    </item>
  </channel>
</rss>

