<?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: Evaluating table data in new table in Power Query</title>
    <link>https://community.fabric.microsoft.com/t5/Power-Query/Evaluating-table-data-in-new-table/m-p/3758822#M123700</link>
    <description>&lt;P&gt;You're welcome Ekaterina.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Mar 2024 19:25:03 GMT</pubDate>
    <dc:creator>dufoq3</dc:creator>
    <dc:date>2024-03-12T19:25:03Z</dc:date>
    <item>
      <title>Evaluating table data in new table</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Evaluating-table-data-in-new-table/m-p/3758213#M123664</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have some problems by generating a new table in Microsoft Excel:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 1 contains the column "Date of export", " Product Name", "Departement", "X" and "Status". So this table depends on exports which are everyday taken and out of this I want to create a table2 with columnn "Product" which summarizes the given data from table1 as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Column "Product" shall display the entries from table1 "Product Name", which belong only to department B,&amp;nbsp; however I can't use a simpel VLOOKUP since eg the Product X occurs several time in table1 as the export is taken everyday, that means the product could be on the 11.03.2024 added to the table with status "In preperation", on the 12.03.2024 it is again added but bow with status "to be delieverd", on the 13.03.2024&amp;nbsp; it is added again still with the status "to be delievered", and on the 14.03.2024 it is again added in the table but with new status "delievered". Based on this I want product X to occur only one time in table 2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The next step would be that the next column in table2 calculates how lang the product X stayed in status "in preperation", another columns calvulates how long the product X was in status"to be delieverd" and so one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I would be glad if someone&amp;nbsp; &amp;nbsp;could help me with at least one of these questions, since everything what I tried out didn't work&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 14:17:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Evaluating-table-data-in-new-table/m-p/3758213#M123664</guid>
      <dc:creator>Ekaterina_</dc:creator>
      <dc:date>2024-03-12T14:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating table data in new table</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Evaluating-table-data-in-new-table/m-p/3758414#M123676</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="704434" data-lia-user-login="Ekaterina_" class="lia-mention lia-mention-user"&gt;Ekaterina_&lt;/a&gt;,&amp;nbsp;provide sample data as table so we can copy/paste and expected result (based on sample data).&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 15:25:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Evaluating-table-data-in-new-table/m-p/3758414#M123676</guid>
      <dc:creator>dufoq3</dc:creator>
      <dc:date>2024-03-12T15:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating table data in new table</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Evaluating-table-data-in-new-table/m-p/3758647#M123687</link>
      <description>&lt;P&gt;Thank you for the hint, here is some Dummy data. Sorry for the formate, but I couldn't figure out how to do it in a bester way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Date of export Product Name Department Status&lt;/P&gt;&lt;P&gt;07.03.2024 Shoes A In Preperation&lt;/P&gt;&lt;P&gt;07.03.2024 Book B In Preperation&lt;/P&gt;&lt;P&gt;07.03.2024 Earings C In Preperation&lt;/P&gt;&lt;P&gt;08.03.2024 Shoes A In Preperation&lt;/P&gt;&lt;P&gt;08.03.2024 Book B To be delievered&lt;/P&gt;&lt;P&gt;08.03.2024 Earings C In Preperation&lt;/P&gt;&lt;P&gt;08.03.2024 Dress A In Preperation&lt;/P&gt;&lt;P&gt;08.03.2024 Bracelet C In Preperation&lt;/P&gt;&lt;P&gt;09.03.2024 Shoes A In Preperation&lt;/P&gt;&lt;P&gt;09.03.2024 Book B To be delievered&lt;/P&gt;&lt;P&gt;09.03.2024 Earings C To be delievered&lt;/P&gt;&lt;P&gt;09.03.2024 Dress A In Preperation&lt;/P&gt;&lt;P&gt;09.03.2024 Bracelet C To be delievered&lt;/P&gt;&lt;P&gt;09.03.2024 T-shirt A In Preperation&lt;/P&gt;&lt;P&gt;10.03.2024 Shoes A To be delievered&lt;/P&gt;&lt;P&gt;10.03.2024 Book B Delievered&lt;/P&gt;&lt;P&gt;10.03.2024 Earings C To be delievered&lt;/P&gt;&lt;P&gt;10.03.2024 Dress A To be delievered&lt;/P&gt;&lt;P&gt;10.03.2024 Bracelet C To be delievered&lt;/P&gt;&lt;P&gt;10.03.2024 T-shirt A In Preperation&lt;/P&gt;&lt;P&gt;10.03.2024 Jacket A In Preperation&lt;/P&gt;&lt;P&gt;11.03.2024 Shoes A Delievered&lt;/P&gt;&lt;P&gt;11.03.2024 Book B Delievered&lt;/P&gt;&lt;P&gt;11.03.2024 Earings C Delievered&lt;/P&gt;&lt;P&gt;11.03.2024 Dress A To be delievered&lt;/P&gt;&lt;P&gt;11.03.2024 Bracelet C To be delievered&lt;/P&gt;&lt;P&gt;11.03.2024 T-shirt A To be delievered&lt;/P&gt;&lt;P&gt;11.03.2024 Jacket A In Preperation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It should look like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 17:27:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Evaluating-table-data-in-new-table/m-p/3758647#M123687</guid>
      <dc:creator>Ekaterina_</dc:creator>
      <dc:date>2024-03-12T17:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating table data in new table</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Evaluating-table-data-in-new-table/m-p/3758663#M123688</link>
      <description>&lt;P&gt;So we have input sample data. What about expected result (based on this data?)&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 17:36:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Evaluating-table-data-in-new-table/m-p/3758663#M123688</guid>
      <dc:creator>dufoq3</dc:creator>
      <dc:date>2024-03-12T17:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating table data in new table</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Evaluating-table-data-in-new-table/m-p/3758716#M123690</link>
      <description>&lt;P&gt;The output should be this table 2 which counts for how many days the product was in the corresponding status:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Product Name In Preperation To be delievered&lt;/P&gt;&lt;P&gt;Shoes 2 1&lt;/P&gt;&lt;P&gt;Book 1 2&lt;/P&gt;&lt;P&gt;Earings 2 2&lt;/P&gt;&lt;P&gt;Dress 2 2&lt;/P&gt;&lt;P&gt;Bracelet 1 3&lt;/P&gt;&lt;P&gt;T-shirt 1&lt;/P&gt;&lt;P&gt;Jacket&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;since tshirt is still in status "to be delievered" there should be no value, same applies for jacket which is still in status "in preperation".&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 18:03:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Evaluating-table-data-in-new-table/m-p/3758716#M123690</guid>
      <dc:creator>Ekaterina_</dc:creator>
      <dc:date>2024-03-12T18:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating table data in new table</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Evaluating-table-data-in-new-table/m-p/3758744#M123692</link>
      <description>&lt;P&gt;Do you want to group it by department or this column can be ignored?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 18:30:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Evaluating-table-data-in-new-table/m-p/3758744#M123692</guid>
      <dc:creator>dufoq3</dc:creator>
      <dc:date>2024-03-12T18:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating table data in new table</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Evaluating-table-data-in-new-table/m-p/3758758#M123693</link>
      <description>&lt;P&gt;Yes, I forgot to mention it. So, later I want to generate such a table for each department.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 18:37:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Evaluating-table-data-in-new-table/m-p/3758758#M123693</guid>
      <dc:creator>Ekaterina_</dc:creator>
      <dc:date>2024-03-12T18:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating table data in new table</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Evaluating-table-data-in-new-table/m-p/3758776#M123694</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="704434" data-lia-user-login="Ekaterina_" class="lia-mention lia-mention-user"&gt;Ekaterina_&lt;/a&gt;,&amp;nbsp;for future be more precise with expected result. It should be BASED ON SAMPLE DATA!. You provided incorrect results for Jacket, Shoes and T-shirt!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result (with ignoring Department, just to show you how it works)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("lZA9D4IwFEX/CumMpEUT6ajioJOJbIShwos0EGoK8fcLGyCvH0PzltObe0+eE3qM6D6KaXwgIXnWCvrxnsZ364KHhg9oMUjVkSJcsWelmuk4oFehZfeegi8InXiUSLZLZCp4QVBBK+ELGqp/2K9GqqF3rqFFCS0MhmjusZD7LOToQjtv28jxjfbwbNfXUg94PKOIk83sBT2zkhowBx8Lfu7DoYSDkcUHPyN3UTZgghmib22EuYljqDgTaVfGfJUxVJmdN0orfg==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Date of export" = _t, #"Product Name" = _t, Department = _t, Status = _t]),
    FilteredOutDelivered = Table.SelectRows(Source, each ([Status] &amp;lt;&amp;gt; "Delievered")),
    ChangedType = Table.TransformColumnTypes(FilteredOutDelivered,{{"Date of export", type date}}, "sk-SK"),
    GroupedRows = Table.Group(ChangedType, {"Product Name", "Status"}, {{"Days", each Duration.TotalDays(List.Max([Date of export]) - List.Min([Date of export])) +1, Int64.Type}}),
    PivotedColumn = Table.Pivot(GroupedRows, List.Distinct(GroupedRows[Status]), "Status", "Days")
in
    PivotedColumn&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Version with Department implemented:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("lZA9D4IwFEX/CumMpEUT6ajioJOJbIShwos0EGoK8fcLGyCvH0PzltObe0+eE3qM6D6KaXwgIXnWCvrxnsZ364KHhg9oMUjVkSJcsWelmuk4oFehZfeegi8InXiUSLZLZCp4QVBBK+ELGqp/2K9GqqF3rqFFCS0MhmjusZD7LOToQjtv28jxjfbwbNfXUg94PKOIk83sBT2zkhowBx8Lfu7DoYSDkcUHPyN3UTZgghmib22EuYljqDgTaVfGfJUxVJmdN0orfg==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Date of export" = _t, #"Product Name" = _t, Department = _t, Status = _t]),
    FilteredOutDelivered = Table.SelectRows(Source, each ([Status] &amp;lt;&amp;gt; "Delievered")),
    ChangedType = Table.TransformColumnTypes(FilteredOutDelivered,{{"Date of export", type date}}, "sk-SK"),
    GroupedRows = Table.Group(ChangedType, {"Department", "Product Name", "Status"}, {{"Days", each Duration.TotalDays(List.Max([Date of export]) - List.Min([Date of export])) +1, Int64.Type}}),
    PivotedColumn = Table.Pivot(GroupedRows, List.Distinct(GroupedRows[Status]), "Status", "Days")
in
    PivotedColumn&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 12 Mar 2024 18:48:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Evaluating-table-data-in-new-table/m-p/3758776#M123694</guid>
      <dc:creator>dufoq3</dc:creator>
      <dc:date>2024-03-12T18:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating table data in new table</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Evaluating-table-data-in-new-table/m-p/3758807#M123698</link>
      <description>&lt;P&gt;Sorry for my inaccuracy. And thank you very much!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 19:13:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Evaluating-table-data-in-new-table/m-p/3758807#M123698</guid>
      <dc:creator>Ekaterina_</dc:creator>
      <dc:date>2024-03-12T19:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating table data in new table</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Evaluating-table-data-in-new-table/m-p/3758822#M123700</link>
      <description>&lt;P&gt;You're welcome Ekaterina.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 19:25:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Evaluating-table-data-in-new-table/m-p/3758822#M123700</guid>
      <dc:creator>dufoq3</dc:creator>
      <dc:date>2024-03-12T19:25:03Z</dc:date>
    </item>
  </channel>
</rss>

