cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Community Articles
Dive into a collaborative space where members like YOU can exchange knowledge, tips, and best practices. Join the conversation today and unlock a wealth of collective wisdom to enhance your experience and drive success.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Lessons from a Power BI to Databricks migration: metric views first, then Genie

vinaykumarsc
New Contributor II

We recently moved a 20-report Power BI estate to Databricks in 6 weeks, against a 23-week plan for a traditional rewrite. Sharing what worked and what didn't, in case it helps others planning the same move.

What made the difference

  1. Metric views before anything else. Our first try pointed Genie at raw tables. It wrote valid SQL that ignored our business rules. Once "revenue = completed sales only" lived in a metric view measure, the same questions came back right.
  2. Benchmarks with Power BI numbers. We loaded the questions the old reports answered, with their Power BI results as expected answers. Validation became a repeatable test, not a demo.
  3. Hand-write the hard 30%. Custom fiscal calendars, many-to-many with filter context and statistical functions were faster to write by hand. Genie's draft still saved time.

Gotchas

  • Genie doesn't retrain itself on thumbs-up. Feedback reaches the agent's authors, who add synonyms, instructions and example SQL. Plan time for that each week.
  • AI/BI dashboards published with shared data permissions apply row filters as the publisher. Use individual data permissions for per-user security.
  • Row filters go on the table that owns the column.
  • Check report usage before you estimate. Five of our 25 reports hadn't been opened in six months.

Small example: a composed measure in a metric view (spec 1.1)

measures:
  - name: total_revenue
    expr: SUM(amount) FILTER (WHERE status = 'Completed')
    synonyms: ["revenue", "sales"]
  - name: transaction_count
    expr: COUNT(1) FILTER (WHERE status = 'Completed')
  - name: avg_transaction_value
    expr: MEASURE(total_revenue) / NULLIF(MEASURE(transaction_count), 0)

The full write-up, with the timeline, costs, adoption approach and a migration checklist, is here: How AI-Native Analytics Cut Our Power BI Migration Timeline by 74%

Has anyone found a good pattern for fiscal-calendar time intelligence in metric views? That was our weakest area.

3 REPLIES 3

Busienkus
New Contributor II

I handled fiscal calendars by adding fiscal year columns to my date dimension table and referencing those in the metric view conditions.

Busienkus
New Contributor II

Fiscal calendar time intelligence in metric views is tricky. I used a similar approach but had to hardcode certain shifts. For mastering DAX and metrics, I attended the Power BI Masterclass at https://redeagle.tech/training/power-bi-masterclass and it clarified a lot. Their hands-on sessions on measures and business logic directly applied to my Databricks setup.

vinaykumarsc
New Contributor II

Thanks for sharing. Hard-coded shifts were our first approach too, and they got fragile quickly: every calendar change meant touching several measures.

What worked better for us was moving the fiscal logic into data instead of expressions:

  1. A fiscal calendar table in Unity Catalog, with one row per date: fiscal_year, fiscal_quarter, fiscal_period, fiscal_week and a flag for 53-week years. Finance owns it, so changes are made in one place.
  2. Join it in the metric view and expose the fiscal columns as dimensions. Genie and the dashboards then group by fiscal period without anyone writing date arithmetic.
  3. Period-over-period measures use the metric viewโ€™s window measures, ordered by the fiscal period column, rather than shifting dates by a fixed number of days.

The 53-week years were still the hardest part. We handled โ€œsame period last yearโ€ with a mapping column in the calendar table rather than a formula.

What kind of shifts did you have to hard-code? Were they 4-4-5 periods, or year-end adjustments?