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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.