Forum Discussion
Modifying the Layout files to add new visuals or update properties
- 1 year ago
This changes are not supported with pbix or bpit format. They are support with power BI projects. Save your file as pbip and you'll have access to the the report.json file which you can modify. The files should have a JSON schema, so you open with Vs code, you should get a indication of what is valid
This changes are not supported with pbix or bpit format. They are support with power BI projects. Save your file as pbip and you'll have access to the the report.json file which you can modify. The files should have a JSON schema, so you open with Vs code, you should get a indication of what is valid
- Sidhant1 year ago
Advocate V
Hi Deku ,
Thanks for the guiding to save the file as pbip instead of pbix, after doing this I got the following structure:Inside the 'Report_Name.Report' folder I got the 'json' file (which you mentioned 'Report.json') which was editable in my editor (VS code)
So I tried modifying the height and width of the card visual on Page-2
(Changed the height and width in the json file-> Saved it), I was expecting the height and width to be updated but the changes weren't reflected.
(Changes not reflected)
Right now I am trying to modifying the existing visuals but if I want to a new visual (lets a donut chart or a table visual) then how should I start the construction is can you help me with this (is there any article or documentation that can help to add a new visual in a report through json file).
Regards,
Sidhant.- Deku1 year ago
Super User
The changes are only seen if you re open the report. Live changes are not supported yet
Can't see any examples online from a quick browse. It is possible. I would turn on git and commit your report. Create a new donut chart or table and look at the git diff to see what changes are applied to your file
- Sidhant1 year ago
Advocate V
Hi Deku ,
So as per your suggestion I created new report wherein I had two pages: In page-1 -> Placed a Donut chart and in Pge-2: Placed a card visual and a table. So my assumption was the name for visuals will remain same in all reports but that was not the case it is different
(New Report)
(In old report I had two pages: Page-1 -> Barc chart and Pie chart ; Page-2: Card visual)
So I was expecting as in both visuals I have used a card visual on screen-2 the name for the both visuals might be same but when I checked the respective json it was not the case
New Report (TestPlay.pbip -> JSON)
Old Report (Demo_to_Test.pbip-> Json)
So later if I have to add any another visual (there is no fix name associated)
Also in same report I had same visual (with different fields) to see if it also has different name or same name, the answer was different name
(TestPlay.pbip)(JSON)
Page-2: Card visual name
Page-3:(Its json)
And once the visual id is identified then comes the question how to structure the query :(I will compare the reports but if there is an easy way that explains on how to structure it it will be helpful)
Regards,
Sidhant.
- Sidhant1 year ago
Advocate V
Hi Deku ,
Just a quick update I was able to modify the size of the card visual just had to modify the width ad height in the config section
So now I just want to understand how to add new visuals (and also I have seen a unique id associated with every visual name so how can I figure out the same for other visuals)
Regards,
Sidhant.- Deku1 year ago
Super User
With mar release you can right click a visual to copy it's visual id