- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Serialize visual custom code (R/Python script visual, Deneb, etc.) as standalone files when saving a report using the Power BI enhanced report format (PBIR)
Currently reports containing the R or Python script visual or a custom visual where the user provides their own code (such as Deneb), when being saved using the Power BI enhanced report format (PBIR), store the script/code embedded as JSON strings within the "visual.json" file for that visual, with new line characters and double quote marks in the code needing to be escaped with a backslash. For the R/Python script visual, the script code appears in a property called "source". For the Deneb custom visual, the code appears in properties called "jsonSpec" and "jsonConfig".
This custom code should instead be stored as one or more separate files that sit alongside the "visual.json" file. For the R/Python script visual, this could be a file called "source.R" or "source.py". For the Deneb custom visual, this could be files called "jsonSpec.json" and "jsonConfig.json". This solution would give report developers a better source control experience when modifying visual custom code, with the ability to easily modify code offline, and with clean diffs free of escape characters.
In the case of the R/Python script visual, Microsoft could implement this solution themselves in the PBIR serializer. In the case of custom visuals like Deneb, Microsoft should enhance the Power BI visual SDK so custom visual developers can specify that certain text-valued properties should be serialized as standalone files in PBIR mode, rather than being serialized as a string within the "visual.json" file.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
- renandho on: Create calculated tables or metrics from visual to...
- NAhmed on: Bookmark Navigator Bug
- MicroTjarek on: Add Default Value Options for Date Range Picker in...
- cube-ian-t on: Fabric REST API must support service principals mo...
- vishalbiggest on: Enable a feature in audit logs
-
ThornKevin
on: Semantic Model visibility within the company
-
frithjof_v on: Dataflow Gen2: Remove distinction between New and ...
-
frithjof_v on: Dataflow Gen2: Make adding columns easier
-
dthompsonKairos
on: Disabling cross highlighting/filtering by default ...
-
NaamaTsafrir on: Request for a feature to count actual views in the...
- New 15,481
- Need Clarification 14
- Needs Votes 22,641
- Under Review 646
- Planned 274
- Completed 1,659
- Declined 228
-
Power BI
39,079 -
Fabric platform
572 -
Data Factory
464 -
Data Factory | Data Pipeline
336 -
Data Engineering
291 -
Data Warehouse
204 -
Data Factory | Dataflow
189 -
Fabric platform | Workspaces
173 -
Fabric platform | OneLake
138 -
Real-Time Intelligence
126 -
Fabric platform | CICD
102 -
Fabric platform | Capacities
87 -
Fabric platform | Admin
78 -
Real-Time Intelligence | Eventhouse and KQL
64 -
Fabric platform | Security
63 -
Fabric platform | Governance
62 -
Data Science
54 -
Real-Time Intelligence | Activator
52 -
Fabric platform | Support
43 -
Data Factory | Mirroring
41 -
Databases | SQL Database
34 -
Real-Time Intelligence | Eventstream
30 -
Databases
28 -
Fabric platform | Data hub
24 -
Data Factory | Apache Airflow Job
4 -
Fabric platform | Real-Time hub
4 -
Product
2