Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
marvin-alpura
New Member

Power BI to Databricks Semantic Layer Generator (DAX → SQL/PySpark)

Hi everyone!

I’ve just released an open-source tool that generates a semantic layer in Databricks notebooks from a Power BI dataset using the Power BI REST API. Im not an expert yet, but it gets job done and instead of using AtScale/dbt/or the PBI Semantic layer, I make it happen in a notebook that gets created as the semantic layer, and could be used to materialize in a view. 

It extracts:

  • Tables
  • Relationships
  • DAX Measures

And generates a Databricks notebook with:

  • SQL views (base + enriched with joins)
  • Auto-translated DAX measures to SQL or PySpark (e.g. CALCULATE, DIVIDE, DISTINCTCOUNT)
  • Optional materialization as Delta Tables
  • Documentation and editable blocks for custom business rules

🔗 GitHub: https://github.com/mexmarv/powerbi-databricks-semantic-gen 

Example use case:

If you maintain business logic in Power BI but need to operationalize it in the lakehouse — this gives you a way to translate and scale that logic to PySpark-based data products.

It’s ideal for bridging the gap between BI tools and engineering workflows.

I’d love your feedback or ideas for collaboration!

..: Please, again this is helping the community, so feel free to contribute and modify to make it better, if it helps anyone out there ... you can always honor me a "mexican wine bottle" if this helps in anyway :..

PS: Some spanish in there, perdón... and a little help from "el chato: ChatGPT". 

 

- Marvin

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @marvin-alpura,

 

Just wanted to say a big thank you for sharing this tool with the community! 🙌
please consider this reply as "Accept as Solution" and click on "Yes" so that other community members will find it more quickly.

Please continue using Microsoft community forum.

 

Regards,

Vinay Pabbu

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @marvin-alpura,

 

Just wanted to say a big thank you for sharing this tool with the community! 🙌
please consider this reply as "Accept as Solution" and click on "Yes" so that other community members will find it more quickly.

Please continue using Microsoft community forum.

 

Regards,

Vinay Pabbu

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.