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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.