Bird
Raised Fist0
Power BIbi_tool~8 mins

Creating dataflows in Power BI - Dashboard Building Guide

Choose your learning style10 modes available
Dashboard Mode - Creating dataflows
Dashboard Goal

Understand how to create and use dataflows in Power BI to prepare and reuse data for reports and dashboards.

Sample Data: Sales Transactions
DateProductCategoryRegionSales Amount
2024-01-05NotebookStationeryNorth120
2024-01-10PenStationerySouth80
2024-01-15ChairFurnitureEast300
2024-01-20DeskFurnitureWest450
2024-01-25MarkerStationeryNorth60
2024-01-30TableFurnitureSouth500
Dashboard Components
  • Dataflow: A Power BI dataflow created to extract, clean, and combine the sales transactions data from multiple sources. It includes steps to filter only sales from 2024 and add a calculated column for Sales Category (High if Sales Amount ≥ 300, else Low).
  • KPI Card - Total Sales: Displays total sales amount from the dataflow.
    Formula: Total Sales = SUM('Sales'[Sales Amount])
    Result: 1510
  • Bar Chart - Sales by Category: Shows total sales grouped by Sales Category (High, Low).
    Formula: Sales by Category = SUM('Sales'[Sales Amount]) grouped by Sales Category column from dataflow.
    Result: High = 1250, Low = 260
  • Table - Sales Details: Lists Date, Product, Region, and Sales Amount from the dataflow for detailed view.
Dashboard Layout
+----------------------+----------------------+
|      KPI Card        |   Bar Chart          |
|   Total Sales        |   Sales by Category  |
+----------------------+----------------------+
|                Sales Details Table               |
|  Date | Product | Region | Sales Amount          |
+-----------------------------------------------+
Interactivity

Filters or slicers can be added on Region or Category fields. When a filter is applied, all components update automatically because they use the same dataflow as their data source. For example, selecting Region = North will update the KPI card, bar chart, and table to show only North region sales.

Self Check

If you add a filter for Category = Furniture, which components update and what changes occur?

  • All components update because they use the dataflow.
  • KPI Card shows total sales for Furniture only: 1250 (Chair 300 + Desk 450 + Table 500).
  • Bar Chart shows sales by Sales Category but only Furniture category rows, so Sales Category High = 1250, Low = 0.
  • Sales Details Table lists only Furniture products and their sales.
Key Result
A Power BI dashboard showing total sales, sales by category, and detailed sales data all sourced from a reusable dataflow.

Practice

(1/5)
1. What is the main purpose of creating a dataflow in Power BI?
easy
A. To create visual charts and graphs
B. To prepare and clean data once for use in multiple reports
C. To write DAX formulas for calculations
D. To schedule report email delivery

Solution

  1. Step 1: Understand dataflow purpose

    Dataflows are designed to prepare and clean data centrally.
  2. Step 2: Compare options

    Creating visuals and writing DAX are report tasks, not dataflow tasks.
  3. Final Answer:

    To prepare and clean data once for use in multiple reports -> Option B
  4. Quick Check:

    Dataflows centralize data prep = A [OK]
Hint: Dataflows focus on data prep, not visuals or formulas [OK]
Common Mistakes:
  • Confusing dataflows with report visuals
  • Thinking dataflows create charts
  • Assuming dataflows handle email scheduling
2. Which of the following is the correct first step to create a dataflow in Power BI Service?
easy
A. Create a new report and add visuals
B. Open Power BI Desktop and click 'Get Data'
C. Go to workspace > New > Dataflow
D. Write a DAX measure in the report

Solution

  1. Step 1: Identify dataflow creation location

    Dataflows are created in Power BI Service under a workspace.
  2. Step 2: Verify correct menu path

    The correct path is Workspace > New > Dataflow, not Power BI Desktop or report creation.
  3. Final Answer:

    Go to workspace > New > Dataflow -> Option C
  4. Quick Check:

    Create dataflow in service workspace = C [OK]
Hint: Dataflows start in Power BI Service workspace, not Desktop [OK]
Common Mistakes:
  • Trying to create dataflows in Power BI Desktop
  • Confusing dataflows with reports
  • Starting with DAX instead of data preparation
3. Consider this scenario: You create a dataflow that connects to an Excel file and applies a filter to keep only rows where Sales > 1000. What will happen when you refresh the dataflow?
medium
A. The dataflow will load all rows from Excel without filtering
B. The dataflow will refresh only if the Excel file is open
C. The dataflow will fail because filters are not allowed
D. The dataflow will load only rows where Sales > 1000

Solution

  1. Step 1: Understand dataflow refresh behavior

    Dataflows apply all transformations including filters during refresh.
  2. Step 2: Apply filter effect

    Only rows meeting Sales > 1000 condition are loaded into the dataflow.
  3. Final Answer:

    The dataflow will load only rows where Sales > 1000 -> Option D
  4. Quick Check:

    Filters apply on refresh = B [OK]
Hint: Filters in dataflows apply automatically on refresh [OK]
Common Mistakes:
  • Thinking filters don't apply in dataflows
  • Assuming dataflows need source files open
  • Believing dataflows load all data regardless of filters
4. You created a dataflow but it fails to refresh with an error saying "Invalid credentials". What is the most likely cause and fix?
medium
A. The data source credentials are missing or expired; update credentials in dataflow settings
B. The dataflow name is invalid; rename the dataflow
C. The Power BI Service is down; wait and retry later
D. The dataflow has too many columns; reduce columns

Solution

  1. Step 1: Analyze error message

    "Invalid credentials" means Power BI cannot access the data source due to authentication issues.
  2. Step 2: Identify fix

    Updating or re-entering credentials in dataflow settings resolves this issue.
  3. Final Answer:

    The data source credentials are missing or expired; update credentials in dataflow settings -> Option A
  4. Quick Check:

    Invalid credentials = update data source login [OK]
Hint: Check and update data source credentials when refresh fails [OK]
Common Mistakes:
  • Ignoring credential errors and blaming dataflow name
  • Assuming service outage without checking credentials
  • Thinking column count causes credential errors
5. You want to create a dataflow that combines data from two different SQL databases and refreshes daily. Which approach is best to ensure efficient and maintainable dataflows?
hard
A. Create two separate dataflows for each database, then create a third dataflow to merge their outputs
B. Create one dataflow that connects to both databases and merges data in a single query
C. Create one dataflow per database and merge data only in Power BI Desktop reports
D. Create multiple reports instead of dataflows to handle merging

Solution

  1. Step 1: Consider modular design

    Separating dataflows by source improves maintainability and reusability.
  2. Step 2: Combine dataflows for merging

    Creating a third dataflow to merge outputs centralizes transformation and refresh logic.
  3. Final Answer:

    Create two separate dataflows for each database, then create a third dataflow to merge their outputs -> Option A
  4. Quick Check:

    Modular dataflows + merge = A [OK]
Hint: Split sources, then merge in a separate dataflow for clarity [OK]
Common Mistakes:
  • Merging different sources in one complex dataflow
  • Merging only in reports causing repeated work
  • Avoiding modular dataflows for easier updates
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard