cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Skemaz
Advocate II
Advocate II

Lost columns on expanding JSON

Hi

Please view the two screen-shots below.

I am trying to keep the column shown in the top screen but lose it when I convert to table.

Any assistance will be appreciated.

Thanks, Mark.Picture1.jpg

 

 

2 ACCEPTED SOLUTIONS

Please check out this file: https://www.dropbox.com/s/bram6131s01nv1t/PBI_ExpandJson.pbix?dl=0

You need to edit the query "Download" with a reference to your local drive

 

You just have to decide whether to join the tables in the query-editor, which would create one big monster-table, or create a data model, which would be the more professional approach.

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

View solution in original post

Hi @sunildatalytyx ,

if the fields are not included in the first 1000 items of the expanded content, then they will not show up.

In that case you have to add them to the M-code manually.

Imagine the automatic expansion had just found "PRN", then you'd add SNR like shown below:

 

image.png

 

Simply add them to the list with commas as separators.

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

View solution in original post

24 REPLIES 24

Hi @sunildatalytyx ,

if the fields are not included in the first 1000 items of the expanded content, then they will not show up.

In that case you have to add them to the M-code manually.

Imagine the automatic expansion had just found "PRN", then you'd add SNR like shown below:

 

image.png

 

Simply add them to the list with commas as separators.

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

View solution in original post

Thank you Imke, thank you for the response, appreciate it. I've realised over time the below response and added the fields manually. Thanks

I'm away from my computer at the moment (in Sydney, Australia).
I'll check that out as soon as I get home.
Many thanks indeed. I know I'll get this working - all thanks to your help.
Best regards, Mark.

All of them please. I intend to create visualizers that show horse speeds and locations relative to one another over time. I hope that makes sense. Thanks.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

November Power BI Update 768x460.png

Check it Out!

Click here to read more about the November 2021 Updates!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.