Power BI Round Trip
Import a Power BI semantic model, edit it in Entropy Data, and push the changes back to Power BI. Or create a new Power BI semantic model from a semantic model of Entropy Data.
A semantic model in Entropy Data can be the place where you edit a Power BI semantic model. You change descriptions, metrics and relationships in Entropy Data. Power BI follows when you push. Entropy Data shows a preview of every push, and nothing reaches Power BI before you confirm it.
The round trip has four steps:
- Import the Power BI semantic model as a semantic model of Entropy Data.
- Edit the semantic model in Entropy Data.
- Preview the changes and push them to Power BI.
- Entropy Data reads the Power BI model back into its asset, so the semantic model page shows the push.
Prerequisites
- The Microsoft Fabric integration syncs the Power BI workspace, so that the Power BI semantic model is an asset in Entropy Data.
- Publish to Power BI is set up for the organization. The push uses the same Microsoft Entra application and the same sign-in.
- You can edit the semantic model. See Permissions.
- You have write rights on the Power BI workspace. The push uses your own Power BI account, not the service principal of the Fabric integration.
If Power BI is not set up for the organization, or if you cannot edit the semantic model, the model page shows no Power BI card.
Import a Power BI Semantic Model
Open the asset of the Power BI semantic model and click Create Semantic Model. See Create a Semantic Model from an Asset. Entropy Data converts the model to an Ossie document:
- Each table becomes a dataset, and each column becomes a field.
- Each measure becomes a metric. Where the translation is exact, the metric gets an expression in Ossie SQL, and it keeps the DAX of Power BI as a second dialect.
- Each relationship between two tables becomes a relationship.
The import also records two baselines. A baseline is the state of the model at the last import, push or create. Entropy Data uses the baselines to tell your edits apart from changes made in Power BI.
The semantic model page then shows two cards in the sidebar:
- The Power BI card names the workspace and the Power BI semantic model, and links to it with Open in Power BI.
- The Asset card compares the semantic model with the Power BI semantic model as the last sync saw it.
Edit the Semantic Model
Edit the semantic model in the editor, in the YAML view, through the API, or on a branch.
After an edit, the semantic model is newer than its source. The Asset card shows each difference as Edited, and it does not offer to take the source over. The Power BI card counts the changes, for example 3 changes not pushed yet, and shows Push to Power BI.
You can edit an expression in two forms:
- Edit the DAX of the
POWER_BIdialect. Entropy Data sends the DAX as you wrote it. - Edit the Ossie SQL in
expression.sql. Entropy Data translates the SQL to DAX. See Expressions.
If you edit both forms of the same metric, the DAX wins.
Push to Power BI
-
On the semantic model page, click Push to Power BI in the Power BI card.
-
If your Power BI account is not connected, click Connect with Power BI and sign in with Microsoft. After the sign-in, Entropy Data opens the dialog again.

-
Read the preview. It lists each table, column, measure and relationship that the push adds, changes or removes, with the old and the new value.
-
Click Push to Power BI to confirm.
After the push, Entropy Data reads the Power BI model back into its asset. The Power BI card then shows no changes to push.
The preview marks an element as Changed in Power BI, will be overwritten if somebody changed it in Power BI after the last import or push. Check these elements before you push. The push replaces them with the version of Entropy Data.
If the semantic model or the Power BI model changes after you opened the preview, Entropy Data refuses the push and shows a new preview. Read the new preview, then push again.
What the Push Changes
The push merges the semantic model into the Power BI model. It does not replace the Power BI model.
The push writes:
- The tables that are datasets, with their columns, measures and descriptions.
- The relationships between datasets.
- The measures of metrics that are on a measure table.
Everything else stays as Power BI has it: partitions, roles, hierarchies, calculation groups, perspectives, translations, data sources and Power Query expressions. A table or measure that exists only in Power BI also stays.
The push removes an element from Power BI only if it was in the model at the last import or push, and you deleted it in Entropy Data since then. The relationships of a deleted dataset are removed with it.
A push changes the definition of the Power BI model, not its data. Refresh the model in Power BI to load data for new columns.
Why a Push Can Be Refused
The preview lists what stops a push. The push stays blocked until you fix each item.
- Refusals: the push cannot send an element. For example, Entropy Data cannot translate the SQL of a metric to DAX. The element keeps its version in Power BI. Change it in Entropy Data, then push again.
- Conflicts: the push cannot merge an element without a decision. For example, a hierarchy in Power BI uses a column that you deleted. Change the element in Entropy Data or in Power BI, then push again.
- A new dataset: Power BI cannot load a table without a partition, and a push does not create partitions. Add the table in Power BI first, or create a new Power BI model.
The preview can also show hints. A hint names a detail that does not reach Power BI as it is, for example a field without a datatype that the push sends as text. Hints do not stop the push.
If you have no write rights on the workspace, the dialog shows the message of Power BI.
Create in Power BI
A semantic model that is not linked to a Power BI model shows Create in Power BI in the Power BI card. Use it for a model that you wrote in Entropy Data or imported from another tool.

- Click Create in Power BI.
- Select the Power BI workspace.
- Optional: select an output port of the data product of the model. The output port only preselects a matching connection.
- Select the Power BI connection. Power BI reads the tables from the server of this connection.
- Enter the Name in Power BI. It can be different from the name of the semantic model.
- Click Create in Power BI.
Power BI gets a new semantic model with one table for each dataset. Entropy Data writes the link into the semantic model, binds the connection, and records the baselines. From then on, the card offers Push to Power BI.
The create has these rules:
- Each dataset must have a source table in
source. - All datasets must read from the same database. One Power BI model reads from one database.
- If the connection names a database, the sources must not name another database.
- If the connection names no database, for example on Snowflake or Databricks, each source must have the form
database.schema.table. - If a source names only its table, Entropy Data looks for a table with that name in the data contracts of the data product. If it finds exactly one, it uses the server of that data contract.
- The create turns off the auto date/time option of Power BI, so that Power BI adds no hidden date tables.
If the create succeeds but Power BI cannot bind the connection, the dialog says so and links to the settings of the model in Power BI. Bind the connection there.
The Power BI Link
The link to the Power BI model is in the ENTROPY_DATA extension of the document, under powerBi:
nonportable_extensions:
- vendor_name: "ENTROPY_DATA"
data:
id: "campaign-performance"
powerBi:
workspaceId: "3f1c9a52-6b7e-4d1a-9c0e-2a8b5f4d7e61"
semanticModelId: "8d2e4b17-0c3a-4f59-b6d8-71e9a2c5f034"
url: "https://app.powerbi.com/groups/3f1c9a52-6b7e-4d1a-9c0e-2a8b5f4d7e61/datasets/8d2e4b17-0c3a-4f59-b6d8-71e9a2c5f034/details"
workspaceId and semanticModelId must be Power BI IDs (GUIDs). url is optional and must start with https://app.powerbi.com/. Open in Power BI always builds its link from the two IDs.
A create writes the link. A model imported from a Power BI asset has no link in its document. It finds its Power BI model through its source asset. If you write a link by hand, it wins over the source asset.
Expressions
Entropy Data keeps an expression in two forms: Ossie SQL in expression.sql, and the DAX of Power BI in the POWER_BI dialect. The import and the push translate between the two forms where the translation is exact.
The translation covers these SQL forms. expression is a calculation over the columns of one table, such as price * quantity. PERCENTILE_CONT is the form PERCENTILE_CONT(p) WITHIN GROUP (ORDER BY column).
| SQL | DAX |
|---|---|
SUM(column) | SUM |
MIN(column) | MIN |
MAX(column) | MAX |
AVG(column) | AVERAGE |
MEDIAN(column) | MEDIAN |
SUM(expression) | SUMX |
MIN(expression) | MINX |
MAX(expression) | MAXX |
AVG(expression) | AVERAGEX |
COUNT(*) | COUNTROWS |
COUNT(1) | COUNTROWS |
COUNT(column) | COUNTA |
COUNT(expression) | COUNTX |
COUNT(DISTINCT column) | DISTINCTCOUNTNOBLANK |
SUM(DISTINCT column) | SUMX over DISTINCT |
AVG(DISTINCT column) | The distinct sum divided by the distinct count |
a / b | DIVIDE |
+, - and * | The same operators |
COALESCE | COALESCE |
NULLIF(x, number) | IF |
STDDEV | STDEV.S |
STDDEV_SAMP | STDEV.S |
STDDEV_POP | STDEV.P |
VARIANCE | VAR.S |
VAR_SAMP | VAR.S |
VAR_POP | VAR.P |
PERCENTILE_CONT | PERCENTILEX.INC |
ABS | ABS |
UPPER | UPPER |
LOWER | LOWER |
SUBSTRING | MID |
IS NULL | ISBLANK |
IS NOT NULL | NOT ISBLANK |
|| of columns and text | & |
DAX reads an empty value as 0 in some functions, where SQL reads NULL as NULL. In these cases, the DAX that Entropy Data writes has an ISBLANK guard, so that the result is the same as in SQL.
Entropy Data does not translate CASE, FILTER, window functions with OVER, a measure without an aggregate, or a row expression with the columns of two tables. It does not guess. If it cannot translate an expression exactly, the push refuses the element. Write the DAX yourself in the POWER_BI dialect, or change the SQL to a form in the table.
Two differences stay on purpose, because they are easy to see in a report. A count over no rows is empty in DAX and 0 in SQL. A division by 0 is empty in DAX and an error in SQL.
The push also records the SQL in an annotation of Power BI. The next import reads the SQL back, so the expression does not change between sql and the dialect on each round trip.
Limitations
- A push does not create tables in an existing Power BI model. Add the table in Power BI, or create a new model.
- The push matches tables, columns and measures by name. If you rename a dataset, the push treats it as a new dataset, and refuses it.
- The push sends the definition of the model, not its data.
- A create supports connections to Snowflake, Databricks and databases that Power Query reads with a server and a database. A connection of another type, or one that names no server, is refused.