<?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 Dataflow 10 minute timing out in Dataflow</title>
    <link>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-10-minute-timing-out/m-p/3365150#M610</link>
    <description>&lt;P&gt;I need help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a large unpivoted dataset and need to pivot it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works in Excel, (about 5 minutes), but when I use this function in PQ Online, the Pivot operations (which is a full scan operations) causes the query to time out (more than 10 minutes, even for the preview). So, apparently complex group bys and pivots just aren't possible with Dataflows yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know if there may be a way to do this using something fast like Scala, in Data Pipelines?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(InputTable as table) =&amp;gt;&lt;/P&gt;&lt;P&gt;let&lt;/P&gt;&lt;P&gt;#"Pivoted Column" = Table.Pivot(&lt;BR /&gt;InputTable, List.Distinct(&lt;BR /&gt;InputTable[Line_Item]&lt;BR /&gt;),&lt;BR /&gt;"Line_Item",&lt;BR /&gt;"Amount",&lt;BR /&gt;List.Sum&lt;BR /&gt;),&lt;/P&gt;&lt;P&gt;#"Replaced Nulls with Zeros" = Table.ReplaceValue(&lt;BR /&gt;#"Pivoted Column",&lt;BR /&gt;null,&lt;BR /&gt;0,&lt;BR /&gt;Replacer.ReplaceValue,&lt;BR /&gt;{&lt;BR /&gt;"Revenue",&lt;BR /&gt;"Cost",&lt;BR /&gt;"Capex"&lt;BR /&gt;}&lt;BR /&gt;),&lt;/P&gt;&lt;P&gt;AddProfit = Table.AddColumn(&lt;BR /&gt;#"Replaced Nulls with Zeros",&lt;BR /&gt;"Profit",&lt;BR /&gt;each try&lt;BR /&gt;[#"Revenue"] +&lt;BR /&gt;[#"Cost"] +&lt;BR /&gt;catch (e) =&amp;gt; e&lt;BR /&gt;),&lt;/P&gt;&lt;P&gt;AddPreTax = Table.AddColumn(&lt;BR /&gt;AddProfit,&lt;BR /&gt;"PreTax",&lt;BR /&gt;each try&lt;BR /&gt;[#"Profit"] +&lt;BR /&gt;[#"Capex"]&lt;BR /&gt;catch (e) =&amp;gt; e&lt;BR /&gt;),&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;OutputTable = Table.UnpivotOtherColumns(&lt;BR /&gt;AddPreTax, {&lt;BR /&gt;"Project Name",&lt;BR /&gt;"Date",&lt;BR /&gt;},&lt;BR /&gt;"Line_Item",&lt;BR /&gt;"Amount"&lt;BR /&gt;)&lt;BR /&gt;in&lt;/P&gt;&lt;P&gt;OutputTable&lt;/P&gt;</description>
    <pubDate>Fri, 04 Aug 2023 08:51:36 GMT</pubDate>
    <dc:creator>st_0999</dc:creator>
    <dc:date>2023-08-04T08:51:36Z</dc:date>
    <item>
      <title>Dataflow 10 minute timing out</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-10-minute-timing-out/m-p/3365150#M610</link>
      <description>&lt;P&gt;I need help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a large unpivoted dataset and need to pivot it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works in Excel, (about 5 minutes), but when I use this function in PQ Online, the Pivot operations (which is a full scan operations) causes the query to time out (more than 10 minutes, even for the preview). So, apparently complex group bys and pivots just aren't possible with Dataflows yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know if there may be a way to do this using something fast like Scala, in Data Pipelines?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(InputTable as table) =&amp;gt;&lt;/P&gt;&lt;P&gt;let&lt;/P&gt;&lt;P&gt;#"Pivoted Column" = Table.Pivot(&lt;BR /&gt;InputTable, List.Distinct(&lt;BR /&gt;InputTable[Line_Item]&lt;BR /&gt;),&lt;BR /&gt;"Line_Item",&lt;BR /&gt;"Amount",&lt;BR /&gt;List.Sum&lt;BR /&gt;),&lt;/P&gt;&lt;P&gt;#"Replaced Nulls with Zeros" = Table.ReplaceValue(&lt;BR /&gt;#"Pivoted Column",&lt;BR /&gt;null,&lt;BR /&gt;0,&lt;BR /&gt;Replacer.ReplaceValue,&lt;BR /&gt;{&lt;BR /&gt;"Revenue",&lt;BR /&gt;"Cost",&lt;BR /&gt;"Capex"&lt;BR /&gt;}&lt;BR /&gt;),&lt;/P&gt;&lt;P&gt;AddProfit = Table.AddColumn(&lt;BR /&gt;#"Replaced Nulls with Zeros",&lt;BR /&gt;"Profit",&lt;BR /&gt;each try&lt;BR /&gt;[#"Revenue"] +&lt;BR /&gt;[#"Cost"] +&lt;BR /&gt;catch (e) =&amp;gt; e&lt;BR /&gt;),&lt;/P&gt;&lt;P&gt;AddPreTax = Table.AddColumn(&lt;BR /&gt;AddProfit,&lt;BR /&gt;"PreTax",&lt;BR /&gt;each try&lt;BR /&gt;[#"Profit"] +&lt;BR /&gt;[#"Capex"]&lt;BR /&gt;catch (e) =&amp;gt; e&lt;BR /&gt;),&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;OutputTable = Table.UnpivotOtherColumns(&lt;BR /&gt;AddPreTax, {&lt;BR /&gt;"Project Name",&lt;BR /&gt;"Date",&lt;BR /&gt;},&lt;BR /&gt;"Line_Item",&lt;BR /&gt;"Amount"&lt;BR /&gt;)&lt;BR /&gt;in&lt;/P&gt;&lt;P&gt;OutputTable&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 08:51:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-10-minute-timing-out/m-p/3365150#M610</guid>
      <dc:creator>st_0999</dc:creator>
      <dc:date>2023-08-04T08:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflow 10 minute timing out</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-10-minute-timing-out/m-p/3371115#M624</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;Could you please raise a support ticket so an engineer can take a look at this? You can use the link below for it:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blog.fabric.microsoft.com/support" target="_blank"&gt;https://blog.fabric.microsoft.com/support&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 21:35:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-10-minute-timing-out/m-p/3371115#M624</guid>
      <dc:creator>miguel</dc:creator>
      <dc:date>2023-08-08T21:35:48Z</dc:date>
    </item>
  </channel>
</rss>

