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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.