Marg Data Guides

Marg Data in Power BI: Import CSV and JSON Files Choose a format, fix the dates and combine many companies

Leena Taylor Paul By Updated October 20, 2026 8 min read

Power BI has no connector for Marg's table files.

Export the company as CSV or JSON, then bring the files in with Get Data. Use the Folder connector for many companies and set the locale on date columns. Keep company and year in every join key and compare one total with a printed report.

Marg to Power BI reporting needs flat tables, and Marg's own files have no Power BI connector. CSV or JSON files from a company close that gap. A few Power Query settings, mainly the locale on date columns, decide whether the numbers tie.

Who Builds Dashboards from Marg Books?

Native link None for Marg tables
Flat tables CSV
Also accepted JSON
Refresh Export again

Univik Software applies filters for dates and voucher types when it creates the files, so a dashboard can start with one year and add more later.

Why Does Marg Data Not Open in Power BI Directly?

Marg keeps its tables in separate files inside the Data folder, and Microsoft's list of Power Query connectors has no Marg entry. Report exports are a fallback, but they follow the printed report's shape and not the data's shape.

Limitations of report exports are that slicing by month and party in one view needs several reports stitched together.

Stop looking for a connector and create files in a format Power BI already opens. For a workbook instead of flat files, see Export All Marg Data into One Excel Workbook.

Which Suits Marg Data Better: CSV or JSON?

Both formats work. They differ in shape, and Univik Software creates either one from the same company, so test both on the same data and keep the one that suits you.

Which format should you choose? Choose CSV for the shortest Power Query. Choose JSON when scripts or a database will open the files too. Not sure? Begin with CSV and test JSON on the same company later.

CriteriaCSV JSON
Shape Flat rows and columns Records and lists
Get Data option Text/CSV JSON
On opening Check delimiter, File Origin and types Power Query flattens the file into a table
Our advice Most dashboards Scripts and databases
Many files Folder connector Folder connector

Microsoft documents both paths in Power Query Text/CSV connector and Power Query JSON connector. The JSON connector flattens the file into a table on opening, so you check the columns afterwards.

How to Import Marg Data into Power BI Step by Step

  1. Export the company Select the CSV files or JSON data card on the export window, then set the date range and the voucher types. One year is enough to start.
  2. Open Power BI Desktop Start a blank report and open Get Data. Choose Text/CSV for one CSV file, JSON for a JSON file or Folder for many files.
  3. Filter to one table In the folder dialog, select Transform Data and keep only the file names for the table you want. Then combine the files.
  4. Fix the column types Right-click the date column, select Change type and then Using locale. Set amounts to decimal numbers and keep codes as text.
  5. Add company and year to the key The same code can repeat across companies. Keep the file or folder name and use it in every join.
  6. Relate the tables and check one total Join the tables on company plus code. Compare one month with a printed Marg report before you publish.
Export window with save options Invoices as PDF, Everything in Excel, CSV files, JSON data, Ledger statements and Day book
CSV files and JSON data are two of the save options on the export window.
Look at your first file before you build

Open the first CSV in a text editor and note the date order and the delimiter. Then set the locale and types once and reuse the query for every file.

An analyst opens Marg CSV and JSON exports into Power BI to build a business dashboard.
Check date formats first, then combine the company and year exports you need.

How Do You Combine Many Marg Companies or Years?

Put the files in a folder and point the Folder connector at the parent. Microsoft's Combine files overview says files combine when they share the same file type and structure, including the same columns, and Power Query Folder Connector names Combine & Transform Data as the easiest way to do it.

Step What to do Why
Filter Keep file names for one table Combine needs the same columns
Tag Keep the source name as a column Codes can repeat between companies
Type Apply one locale to dates Day-first dates fail under a month-first locale
Join Use company and code together Avoids mixing two companies

If dates look swapped or show errors, right-click the column header and use Change type, then Using locale, as Data Types in Power Query explains. If special characters look broken, set File Origin to UTF-8 in the import dialog, which the Text/CSV connector article describes.

Create CSV and JSON files from the Data folder

Univik Marg Data Converter creates plain CSV and JSON files that Power BI, a database or a script can open, with filters for dates and voucher types.

Univik Software checks its figures before it creates the files. Group totals equalled the sum of group month postings in 100% of test rows, across month balance tables of 1,241, 4,313 and 33,261 rows in three real companies.

Download Free Trial Buy Now - From $99

Install on Windows 10 or 11 after adding .NET 4.8. The free trial stops at ten items per section.

Before you publish the report, check these
  • One month's sales total matches a printed Marg report
  • Cash and bank balances match at the same date
  • Row counts per table match across two exports of the same data
  • Dates read in the right order on a visual
  • Company plus code appears in every join

Fix Common Power BI Import Problems

1. Dates swapped or blank

Do this: The locale does not match the file. Right-click the column header, select Change type and then Using locale, and choose the locale of the file's dates. Refresh the report afterwards.

2. Combine fails on mismatched columns

Do this: Two files have different columns. Select Transform Data in the folder dialog, filter the list to one table and remove stray files.

3. Garbled characters

Do this: Set File Origin to UTF-8 in the import dialog and apply it again.

4. Totals differ from Marg

Do this: Check your date filter and whether deleted rows were included. See Find Deleted and Changed Entries in Marg Data for what the files keep.

Need help with a CSV or JSON file? Contact our support team and attach the first few rows.

Questions About Marg Data in Power BI

Is there a native Power BI connector for Marg?

No. Microsoft's list of Power Query connectors has no Marg entry, so create CSV or JSON files from the company first and bring them in with Get Data.

Which is better for Power BI: CSV or JSON?

Choose CSV for most reports, because a CSV file is a flat table that opens with Text/CSV in Get Data. Choose JSON when scripts or a database also use the files, and check the flattened columns in Power Query.

Which Get Data options open Marg CSV and JSON files?

Text/CSV opens a CSV file, JSON opens a JSON file and Folder combines many files. Microsoft describes these options in its Power Query connector articles.

How do I combine several companies or years in one report?

Put the files in their own folder, point the Folder connector at the parent and select Combine & Transform Data. Microsoft says the files need the same file type and structure, including the same columns. Add the company and year to your key.

Why are my dates wrong in Power BI?

Power Query interprets dates with your locale, so a day-first date can fail under a month-first locale like English (United States). Right-click the column header and use Change type, then Using locale.

Why do special characters look broken?

Character sets can differ between the file and Power BI. Set File Origin to UTF-8 in the import dialog. Microsoft says Power Query infers UTF-8 only when the file starts with a UTF-8 byte order mark.

Does the report refresh when I enter new vouchers?

No. CSV and JSON files are a copy from the day you export. Create a fresh export for newer entries, overwrite the old files and refresh the report.

Do I need Marg installed to build the report?

No. Univik Software opens the Data folder directly and creates the CSV and JSON files, so the PC needs no Marg install. Power BI then opens the output, and neither program depends on the other.

Leena Taylor Paul

Univik staff worked on this guide with the author. The Power Query steps come from Microsoft Learn, checked on October 20, 2026. The advice on file format and table keys is ours.

Sources we read: Power Query Text/CSV connector · Power Query JSON connector · Power Query Folder Connector · Combine files overview · Data Types in Power Query · Power Query connectors

More Marg Data Guides

Choose the guide that matches the task on your desk.