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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.