Accenture Data Analyst Interview Questions
Accenture Data Analyst Interview Questions
Interview
YoE (1–4 Years)
CTC: 9–13 LPA
SQL Questions
1. Write a query to fetch the top 3 employees with the highest
salaries from an Employees table.
Fetch the Top 3 Employees with the Highest Salaries
Query:
LIMIT 3;
201 1 2024-02-15
202 2 2024-02-10
203 1 2024-02-18
204 3 2024-02-20
205 1 2024-02-25
206 2 2024-02-27
207 1 2024-03-02
Query:
SELECT customer_id
FROM Orders
GROUP BY customer_id
301 1 2024-01-10
302 2 2024-01-12
303 1 2024-02-15
304 2 2024-02-20
305 1 2024-03-05
Query:
SELECT customer_id,
MIN(purchase_date) AS first_purchase,
MAX(purchase_date) AS last_purchase
FROM Transactions
GROUP BY customer_id;
401 1 2024-02-17
402 2 2024-02-18
403 3 2024-02-19
404 1 2024-02-24
Query:
SELECT *
FROM Orders
Query:
SELECT region,
AVG(sales_amount) AS avg_sales
FROM Sales
GROUP BY region;
FROM Employees
Customers Table
customer_id customer_name
1 John
2 Alice
3 Bob
Orders Table
order_id customer_id
101 1
102 2
Query:
FROM Customers c
601 A Apple
product_id category product_name
602 B Banana
603 A Orange
701 601 50
702 602 30
703 601 40
704 603 60
Query:
FROM (
FROM Sales s
)s
WHERE s.rnk = 1;
Query:
FROM Products;
10. Write a query to Fetch Orders Where the Total Order Value
Exceeds the Average Order Value
Input Table: Orders
901 1 5000
902 2 7000
903 3 6000
904 4 8000
Query:
SELECT *
FROM Orders
Creating a Dynamic Report for Revenue by Region with Filters for Product and Sales
Channel
Steps:
4. Ensure that the slicers are synced across all report pages.
MoM Growth =
VAR PrevMonthSales =
CALCULATE(
SUM(Sales[Revenue]),
PREVIOUSMONTH(Sales[Date])
)
RETURN
• This calculates the percentage change in revenue compared to the previous month.
CALCULATE(
SUM(Sales[Revenue]),
FILTER(
ALLSELECTED(Sales),
• This calculates running total sales for the selected product category in the current
year.
Steps:
"Period", STRING,
Revenue by Period =
SWITCH(
SELECTEDVALUE(TimePeriod[Period]),
"Monthly", SUM(Sales[Revenue]),
Sales Rank =
RANKX(
SUM(Sales[Revenue]),
DESC,
DENSE
)
• This ranks sales reps based on total sales within their respective regions.
Steps:
[Region] = USERPRINCIPALNAME()
Key Features:
Steps:
2. Select Add Data → Choose a data source (SQL, Excel, API, etc.).
Best Practices:
• Use Import Mode for smaller datasets, DirectQuery for real-time access.
• Create Star Schema: Avoid too many relationships and use fact & dimension
tables.
• Optimize DAX Measures: Prefer SUMX() over FILTER() when working with row-level
calculations.
Steps:
3. Click Transform → Replace Values → Enter a default value (0, Unknown, etc.).
M Code Alternative:
Before Unpivoting:
After Unpivoting:
(c) Merging Data from Two Files with Different Column Names
Example:
Task: The process was time-consuming and prone to errors, so I needed to automate it to
improve efficiency.
Action:
• I leveraged Power Query to directly connect to the data warehouse and clean the
data within Power BI instead of using Excel.
• I built DAX measures to calculate key metrics dynamically instead of using static
Excel formulas.
Result: The automation reduced report preparation time from 4 hours per week to 30
minutes, eliminated manual errors, and improved data refresh speed, allowing
stakeholders to access real-time insights.
Situation: While analyzing customer support data for a client, I noticed an unusual
increase in chat support resolution times over the last quarter.
Task: My goal was to identify the cause of the issue and suggest improvements.
Action:
• I performed a trend analysis in Power BI and found that chat response times spiked
between 6 PM - 10 PM.
• Using data segmentation, I discovered that a new offshore support team was
handling chats during these hours.
• I compared chat transcripts before and after the shift change and identified that
agents lacked proper training, leading to delays.
Result: I presented the findings to the operations team, who implemented targeted
training. Within a month, chat resolution times improved by 25%, reducing customer
complaints.
Task: I needed to manage my time effectively while ensuring all deliverables met business
expectations.
Action:
• I set up early-stage reviews to catch potential issues before the final submission.
Task: My goal was to identify the root cause and ensure accurate reporting.
Action:
• I checked data refresh logs in Power BI and found that SQL data was updating
daily, while the Excel reports were manual uploads that were updated weekly.
• I worked with the finance team to standardize the data refresh frequency.
• I added a data validation step in Power Query to flag mismatches before the report
refresh.
Result: After implementing these changes, we eliminated data mismatches and improved
stakeholder trust in the dashboard.
Situation: I worked on a customer retention dashboard for a retail client, requiring inputs
from marketing, sales, and customer service teams.
Task: My challenge was to ensure the dashboard provided insights that aligned with all
stakeholders' needs.
Action:
• I used row-level security (RLS) to ensure teams saw only relevant data.
Result: The final dashboard provided actionable insights, helping increase customer
retention by 12% in three months through targeted marketing campaigns.