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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. 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
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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