<?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 Need alternative data types for Multivalued and Array data type in Dataflow</title>
    <link>https://community.fabric.microsoft.com/t5/Dataflow/Need-alternative-data-types-for-Multivalued-and-Array-data-type/m-p/3419308#M809</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I need to import data from SAP to Fabric using Fabric. where some columns datatype is Array type and some tcolumns data type is Multivalued.&lt;/P&gt;&lt;P&gt;instead of Array and Multivalued, which data type i need to use in Fabric(if i need to define datatypes manually), can someone let me know.&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;</description>
    <pubDate>Thu, 07 Sep 2023 09:11:00 GMT</pubDate>
    <dc:creator>sudhav</dc:creator>
    <dc:date>2023-09-07T09:11:00Z</dc:date>
    <item>
      <title>Need alternative data types for Multivalued and Array data type</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Need-alternative-data-types-for-Multivalued-and-Array-data-type/m-p/3419308#M809</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I need to import data from SAP to Fabric using Fabric. where some columns datatype is Array type and some tcolumns data type is Multivalued.&lt;/P&gt;&lt;P&gt;instead of Array and Multivalued, which data type i need to use in Fabric(if i need to define datatypes manually), can someone let me know.&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 09:11:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Need-alternative-data-types-for-Multivalued-and-Array-data-type/m-p/3419308#M809</guid>
      <dc:creator>sudhav</dc:creator>
      <dc:date>2023-09-07T09:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need alternative data types for Multivalued and Array data type</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Need-alternative-data-types-for-Multivalued-and-Array-data-type/m-p/3423901#M821</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't have this specific experience, but tables in Fabric will not support arrays or multivalued columns. You may need to make a first import of the data as JSON, which supports this, and later transform the JSON in a flat model which fits your needs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The flat model may result in more than a single table, creating a relationship between the main record and each related information on the multivalued columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dennes&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 08:43:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Need-alternative-data-types-for-Multivalued-and-Array-data-type/m-p/3423901#M821</guid>
      <dc:creator>DennesTorres</dc:creator>
      <dc:date>2023-09-11T08:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need alternative data types for Multivalued and Array data type</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Need-alternative-data-types-for-Multivalued-and-Array-data-type/m-p/3448614#M888</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;,&amp;nbsp;since there's not much context,&amp;nbsp;I'm making the following assumptions in my reply. Please provide more details if these are not correct.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;You're trying to use multivalued types in relational tables and not within analytical / calculation views.&lt;/LI&gt;&lt;LI&gt;You're using the SAP HANA Connector with custom SQL queries.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The multivalued types are exposed by the HANA Connector as binary values, which when converted to text start with some non-printable characters. In my test, distinct values are delimited by a form feed character,&amp;nbsp;&lt;FONT face="courier new,courier" size="2"&gt;#(000C)&amp;nbsp;&lt;/FONT&gt;in the example below.&lt;/P&gt;&lt;P&gt;You could use something similar to the query below to extract the values. It won't fold to HANA.&lt;BR /&gt;If the number of items in the array varies by row, then you’d need to split the column into a list and then decide how to translate the list into columns / rows, or translate the list into a structured format like JSON or CSV.&lt;BR /&gt;&lt;BR /&gt;In these examples my table is called Employee and it has a Phone column defined in HANA as:&lt;/P&gt;&lt;P&gt;Phone &lt;STRONG&gt;VARCHAR&lt;/STRONG&gt;(15) ARRAY WITHOUT DUPLICATES&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;let&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PHONE = Value.NativeQuery(SapHana.Database("server", [Implementation="2.0"]),&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;"select #(lf)""ID"",#(lf)""FIRSTNAME"",#(lf)""LASTNAME"",#(lf)""PHONE""#(lf) from ""HANAUSER"".""EMPLOYEE""", null, [EnableFolding=true]),&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PHONE1 = PHONE{0}[PHONE],&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Imported Text" = Table.FromColumns({Lines.FromBinary(PHONE1,null,null,1252)}),&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Split Column by Delimiter" = Table.SplitColumn(#"Imported Text", "Column1", Splitter.SplitTextByDelimiter("#(000C)", QuoteStyle.None), {"Column1.1", "Column1.2", "Column1.3", "Column1.4"}),&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Changed Type" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"Column1.1", type text}, {"Column1.2", type text}, {"Column1.3", type text}, {"Column1.4", type text}})&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;in&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Changed Type"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another option is to use a SAP HANA specific function, such as UNNEST in the example below to turn multivalued columns into rows, for example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;Value.NativeQuery(SapHana.Database("server", [Implementation="2.0"]),&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;"SELECT DISTINCT Phones.Number FROM UNNEST(""HANAUSER"".""EMPLOYEE"".Phone) AS Phones (Number)", null, [EnableFolding=true])&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 21:17:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Need-alternative-data-types-for-Multivalued-and-Array-data-type/m-p/3448614#M888</guid>
      <dc:creator>jjgb</dc:creator>
      <dc:date>2023-09-26T21:17:10Z</dc:date>
    </item>
  </channel>
</rss>

