Building Tableau and Power BI Dashboards with AI
Dashboards are where analyst work meets the rest of the company. A good dashboard answers one question clearly; a bad one confuses the audience and creates more work. AI helps in three distinct places: designing the dashboard, writing the calcs and measures, and narrating what the data says.
This lesson covers Tableau and Power BI workflows with ChatGPT, Claude, Einstein Copilot (Tableau), and Copilot for Power BI.
What You'll Learn
- Using AI to design a dashboard before you start clicking
- Generating Tableau calcs, LOD expressions, and Power BI DAX measures
- Getting AI narratives from your dashboard data
- Auditing and refactoring dashboards you inherited
Design First, Build Second
The biggest mistake analysts make is opening Tableau and starting to drag pills. Dashboards fail because the question is unclear, not because the chart is wrong. Start in ChatGPT:
I am building a weekly revenue dashboard for our VP of Sales. She cares about:
- Total closed revenue this week vs last week vs same week last year
- Pipeline health (stage × value × days in stage)
- Top 10 deals at risk
- Team performance (reps ranked by weekly closed revenue)
Propose a dashboard layout with:
- Four zones with headline, chart, and one-sentence interpretation cue
- The right chart type for each zone (no pie charts)
- A priority order for the zones (most important upper-left, Z-pattern)
- One filter control that is actually useful (and three you should NOT add)
Justify each choice in one sentence.
This produces a wireframe-level plan in plain English. You then build to the plan rather than drifting.
Tableau Calcs and LOD Expressions
AI handles Tableau calcs reliably when you describe the data and the goal.
In Tableau, I have a data source with fields:
OrderID(string)OrderDate(date)Customer(string)Region(string)Revenue(float)Write a calculated field named
Revenue vs Region Avgthat returns, for each order, the difference between that order's revenue and the average revenue for the order's region. Use an LOD expression. Show me both the calc and a one-sentence explanation of what LOD scope you chose and why.
The answer is a FIXED LOD expression with a comment. For common Tableau patterns, also request by name:
- "Rolling 7-day average using
WINDOW_AVGin a table calc" - "First purchase date per customer with
FIXEDLOD" - "Running total reset at the start of each quarter"
- "Rank of a measure within a partition using
RANK_UNIQUE" - "Year-over-year change with
LOOKUPandINDEXlogic"
Power BI DAX Measures
DAX is harder for most analysts than Tableau calcs because the evaluation context is not obvious. AI is unusually good at DAX because the syntax is well-documented.
Power BI. I have a star schema:
Fact_Sales(OrderID, DateKey, CustomerKey, ProductKey, Revenue)Dim_Date(DateKey, Date, Year, Quarter, Month, MonthName)Dim_Customer(CustomerKey, CustomerName, Country, Segment)Dim_Product(ProductKey, ProductName, Category)Write a DAX measure
Revenue YoY %that compares the current filter context's total revenue to the same period last year. Handle the case where the previous-year period has no data (return BLANK, not an error). Include a comment explaining each line.
You will get a clean DIVIDE expression with CALCULATE and SAMEPERIODLASTYEAR. For more advanced patterns, request:
- "Rolling 90-day revenue using
DATESINPERIOD" - "Count of customers who purchased in both this month and last month"
- "Cumulative sum within the current year"
- "Pareto (top 80% of revenue) measure showing rank and cumulative percent"
Copilot for Power BI
If your tenant has Power BI Copilot, you can ask it to build entire pages:
- "Create a sales overview page with revenue KPI, revenue over time, top 10 products, and sales by region."
- "Write a narrative summarizing the trends visible on this page."
- "Generate a DAX measure for monthly recurring revenue from the
Fact_Subscriptionstable."
Copilot sees your semantic model and will use the real field names. This is faster and safer than pasting your schema into external AI.
Einstein Copilot for Tableau
Salesforce's Einstein Copilot inside Tableau can write calcs, summarize worksheets, and answer natural-language questions against a published data source. Useful prompts:
- "What were the top 3 drivers of revenue decline in Q1 2026?"
- "Summarize this dashboard for a non-technical executive."
- "Create a calculated field that returns the days between first and last order per customer."
AI-Generated Dashboard Narratives
A dashboard without narrative forces the viewer to figure out the story. Let AI draft it:
Here is the data behind the dashboard (paste a CSV or summary table). Write a 60-word narrative that:
- Leads with the most important finding
- Names one driver behind the movement
- Flags one risk or caveat
- Ends with one suggested next action
Use plain language, no jargon, no "we are pleased to report" phrasing.
Paste this narrative into a "Summary" tile at the top of the dashboard. Stakeholders will read it; most will skip the charts unless the narrative nudges them.
Refactoring an Inherited Dashboard
When you open a 14-tab Tableau workbook or a 22-page Power BI report that someone else built, feed it to AI before you touch it:
Here is a list of all the fields, calcs, and measures in this Tableau workbook: {paste the data source and calcs via the XML or screenshot}.
Review the calcs for:
- Redundancy (two calcs doing the same thing)
- Errors or off-by-one bugs
- Non-standard conventions (hard-coded dates, magic numbers)
- Opportunities to consolidate with LOD expressions
Output a table with columns: calc name, issue, severity, suggested fix.
This turns dashboard archaeology from a multi-day task into a morning review.
Performance Tuning
Slow dashboards are a top complaint. AI can diagnose:
My Tableau dashboard takes 40 seconds to load. Here is the list of calculated fields ({paste}), the data source ({paste schema}), and the views ({paste screenshots}).
Identify the most likely performance culprits. Rank them by impact. For each, suggest the specific fix: extract vs live, materialization, aggregation in the warehouse, simplifying a calc, removing an unused filter.
Common wins the AI will suggest: push filters to the data source, materialize expensive LODs in the extract, reduce the number of marks on a view, aggregate at query time instead of in the view.
Accessibility and Good Defaults
Ask AI to sanity-check accessibility and usability:
Review this dashboard description against best practices for accessibility and readability:
- Color-blind safe palettes
- Sufficient contrast for text
- Logical reading order
- Clear axis labels and units
- No more than 5-7 distinct colors on any view
Flag any concerns and suggest specific fixes.
Building the Same Dashboard in Two Tools
A reliable AI move: build your dashboard spec once, then generate the implementation for whichever tool your audience uses:
I have a dashboard spec for sales performance. Generate implementation guidance for:
- Tableau: calcs, sheet layout, click-by-click instructions
- Power BI: DAX measures, visual types, page layout
- Looker Studio: field formulas, chart types
Keep all three equivalent in meaning so the same dashboard could be rebuilt in any tool.
Key Takeaways
- Always design the dashboard in plain language before touching the BI tool
- AI is excellent at Tableau LOD expressions and Power BI DAX measures
- In-product Copilots (Einstein, Power BI) see your model and are safer
- Paste a short data summary and ask for a narrative tile
- Use AI to audit inherited dashboards and diagnose performance issues

