Friday, 9 October 2026

Create PowerBI dashboard using github copilot and VS code

 Step 1: Open VS code and open PBI project folders

Step 2: write the following 

Open semantic model from PBIP folder 'D:\TMDL_Folder.SemanticModel'.

or 

write / and select Open semantic model from PBIP folder then past the path to the folder and hit enter


Step 3: paste the following prompt 


Goal:

Create executive dashboards, Financial, Merchant, Customer dashboards and detailed pages, and tooltips


Read the semantic model and all folders content completly, then, Add any relevant and required scripts, tables, fields, and Measures to Generate:

Necessary measures table and folders

Calendar Table

Dashboards layout

Slicers

KPIs (value, trend, and target), Gauge cards, and all applicable visualization and Conditional formatting rules.

Tooltips

Drill-through pages

DAX code


Include all applicable KPIs for Revenue, Expense, Growth, like:

Revenue Growth %

Gross Profit

Net Profit

Profit Margin %

Transaction Value

Transaction Count

Average Transaction Value

Success Rate %

 Week Over Week (WoW), Month Over Month (MoM), and Year Over Year (YoY) comparisons

MTD, QTD, YTD, WTD, MoM, QoQ, YoY, WoW, FYTD, PY, LY, CY, CM, PM, CQ, PQ


Before editing, inspect the current files and preserve unrelated user changes. Generate or modify JSON with a structured serializer, not hand-built JSON strings. Afterward, parse every report JSON file and validate it against its schema. Check nested visual.objects arrays and objects for balanced braces and brackets. Don’t claim the PBIP is ready until validation passes; if Power BI Desktop is available, open the project and confirm it loads.


Friday, 19 June 2026

Power BI Project Error Newtonsoft

 


Error Message:

Method not found: 'System.Threading.Tasks.Task`1<Newtonsoft.Json.Linq.JToken> Newtonsoft.Json.Linq.JToken.LoadAsync(Newtonsoft.Json.JsonReader, System.Threading.CancellationToken)'.


other error 

Error Message:

Cannot perform interop call to: CopilotSettingsHostService.GetAgentMetadataResponse(args:1) - wrong arg[0]=request value


The Solution:

  1. Download the new dll from https://globalcdn.nuget.org/packages/newtonsoft.json.13.0.3.nupkg?packageVersion=13.0.3
  2. Extract it after converting the extension into zip
  3. cop the Newtonsoft.Json.dll from folder .net 45
  4. Past it into new folder -name it as you want- in the directory C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Newtonsoft.Json
  5. search in windows menu for "Developer Command Prompt" and run it as admin
  6. cd to the folder where you placed the dll
  7. run the following command: gacutil -i Newtonsoft.Json.dll
  8. restart power bi, and congrats