cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
UI
Frequent Visitor

Want to change the data source from excel to json

Hi Folks,

I  want to change the datasource from xlsx to json, but getting error. Can any one give me solution on this.

UI_0-1648629997590.png

 

Regards,

Pratik.S

1 ACCEPTED SOLUTION
SanketBhagwat
Super User
Super User

Hi @UI .

Copy the .json code into a notepad and click on save as and save the file as .json.
Let me know if that works.

Thanks,
Sanket.

If this post helps, then mark it as 'Accept as Solution' and give it a thumbs up.

View solution in original post

4 REPLIES 4
SanketBhagwat
Super User
Super User

Hi @UI .

Copy the .json code into a notepad and click on save as and save the file as .json.
Let me know if that works.

Thanks,
Sanket.

If this post helps, then mark it as 'Accept as Solution' and give it a thumbs up.

UI
Frequent Visitor

Thanks sanket.

 

Regards,

Pratik

PaulDBrown
Super User
Super User

I suggest you keep the original Query with Excel as a source, and proceed as follows in a duplicate PBIX file to make sure you don't mess the original file.

In the new PBIX, create a new Query using the json file and change the names of the columns to reflect the exact same transformations and column names in the Excel query. Once you have completed it, copy the M-Code from the Json Query (which you access through the Advanced Editor under Home in the ribbon), go to the Excel Query's Advanced Editor and paste the copied code over the original code to repplace it. Check the integrity of measures etc...Once everyting is fine, you can delete the Json Query and save the duplicate file with the same name of the original PBIX to replace it.





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Tahreem24
Super User
Super User

@UI , Double Click on "Source" option and change the file path.

Capture.JPG

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , and Fortune 500 Companies Analysis

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors
Top Kudoed Authors