Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
SNik
Helper I
Helper I

XML into Rows - Pivot each record

Hi

I have 100s of records that looks like as mentioned in each row.....

{
                                                "@context": "http:SomeOrg.org",
                                                "@type": "Product",
                                                "name": "Product Na 01",
                                                "category": "Catagory Nav",
                                                "image": "\/media\/image\/0\/base\/ABC-01.png",
                                                "brand": "Brand B",
                                                "mainEntityOfPage": "\/en\/models\/nav\/nav01\/"
                                            }

 

I am trying to change the out put to

 

Field1    Field B                       FieldC(Product)      FieldD(Catagory)     FieldE(Band)    FieldF(img)

  A          The above XML        Product Na 01         Catagory Nav            Brand B           ABC-01.png

  B          Another XML             Product Lm 04         Catagory Lm            Brand P           XYZ-01.png

 

how can i split my XML to the above new fileds Field C D E F for each row

I assume you can do this in the M language, right?

 

Thanks

 

Sincerely
Nik- Shahriar Nikkhah
2 REPLIES 2
SNik
Helper I
Helper I

one last thing heads up that the XML string has lots of space on the right as seen

 

{
                                                "@context": "httpSmiley FrustratedomeOrg.org",
                                                "@type": "Product",
                                                "name": "Product Na 01",
                                                "category": "Catagory Nav",
                                                "image": "\/media\/image\/0\/base\/ABC-01.png",
                                                "brand": "Brand B",
                                                "mainEntityOfPage": "\/en\/models\/nav\/nav01\/"
   

Sincerely
Nik- Shahriar Nikkhah
SNik
Helper I
Helper I

Sorry But I didn't put that funny face

Sincerely
Nik- Shahriar Nikkhah

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.