Scenario - Based Power BI Interview Q&A-1
Scenario - Based Power BI Interview Q&A-1
1. Data Relationship
Question:
Given a dataset with 'Customer Age' and 'Purchase Amount,' how would you
visualize their relationship? Which graph would you use and why?
Answer:
Use a scatter plot with 'Customer Age' on the x-axis and 'Purchase Amount' on the
y-axis to identify correlations or trends. Adding a trendline helps visualize the
pattern. If there are categories like 'Customer Segment,' use different colors or
markers to highlight variations.
Question:
In Power BI, when would you prefer a measure over a calculated column? Provide
an example.
Answer:
Question:
For a dataset containing monthly sales and marketing spend, which graph would
best illustrate their correlation? Why?
Answer:
A scatter plot with a trendline is ideal to visualize correlation. It shows the
relationship between sales and marketing spend. Additionally, if you want to
observe changes over time, overlay the correlation on a line chart with dual axes.
4. Hierarchical Filtering
Question:
How would you implement a hierarchical filter for Region → Country → City in
Power BI?
Answer:
1. Create a hierarchy in the data model with 'Region,' 'Country,' and 'City.'
2. Add a slicer for the hierarchy, enabling users to drill down.
3. Use visuals like tables or matrixes to display data that respects the
hierarchy.
Question:
How would you allow users to filter sales data interactively by region and product
category?
Answer:
6. Dynamic Reporting
Question:
How would you allow users to toggle between different metrics (e.g., Sales, Profit,
and Expenses) in a single chart?
Answer:
SelectedMetric =
SWITCH(
SELECTEDVALUE(Metrics[Metric]),
"Sales", SUM(Sales[Amount]),
"Profit", SUM(Sales[Profit]),
"Expenses", SUM(Sales[Expense])
)
7. Performance Optimization
Question:
How would you ensure a Power BI report with millions of rows remains
performant?
Answer:
8. KPI Visualization
Question:
How would you display KPIs such as Total Revenue and Profit Margin in Power
BI?
Answer:
Use card visuals for static metrics like Total Revenue. For dynamic KPIs with
thresholds, use KPI visuals that compare current values against targets. Optionally,
use gauges for progress visualization.
9. Real-Time Dashboard
Question:
How can you create a Power BI dashboard that tracks real-time order statuses?
Answer:
Question:
How would you handle null or missing values in Power BI?
Answer:
Question:
How would you visualize sales trends and forecast future values?
Answer:
Question:
How would you restrict data access so users only see their respective region’s
sales?
Answer:
[Region] = USERPRINCIPALNAME()
2. Assign users to roles in the Power BI Service.
3. Test roles with the 'View as Role' feature.
13. Conditional Formatting
Question:
How would you highlight products with low profitability in Power BI?
Answer:
Question:
How would you implement drillthrough functionality to analyze specific customer
segments?
Answer:
Question:
How would you clean and transform messy data with duplicate rows and
inconsistent formats in Power BI?
Answer:
1. Use Power Query to:
○ Remove duplicates.
○ Standardize text formats using transformations like Trim, Uppercase,
etc.
○ Handle missing values with default replacements.
2. Load the cleaned dataset into the model for analysis.
Question:
How would you create a filter to show sales data for the last 7 days dynamically?
Answer:
Create a calculated column:
Last7Days =
IF(
Dates[Date] >= TODAY() - 7 && Dates[Date] <= TODAY(),
"Last 7 Days",
"Other"
)
Question:
How would you visualize variance between target and actual sales?
Answer:
1. Use a clustered bar chart with separate bars for actual and target values.
2. Add a DAX measure for variance:
Question:
How would you set up alerts for KPI breaches in Power BI?
Answer:
Question:
How would you calculate and visualize a weighted average in Power BI?
Answer:
Create a DAX measure:
Use this measure in a card or chart visual to display the weighted average.
Answer:
1. Use Power Query to clean the data by removing special characters and
standardizing formats.
2. If variations persist, use Python or R scripts within Power BI to apply fuzzy
matching.