Power BI is a data visualization and business intelligence tool by Microsoft that helps in connecting, transforming and analyzing data. In interviews, questions often cover its core features like data modeling, DAX formulas, dashboards and reports as well as scenario-based problem-solving.
1. What is Power BI, Business Intelligence and its key features?
Power BI is a data visualization tool developed by Microsoft. It enables users to establish connections with diverse data sources, transform and manipulate data, generate interactive reports and dashboards and share insights with others. Power BI is extensively used in organizations to analyze data and make informed decisions based on data-driven insights.
BI stands for Business Intelligence which refers to collecting, analyzing and delivering business data to support decision-making in organizations This system uses a variety of tools, applications and practices to transform raw data and organise them into valuable insights. By doing so, companies can make informed decisions, spot trends and improve their overall performance.
Power BI is a useful tool with many features. Some notable features include:
- It enables users to visualize data and share that visualization with others.
- Users are able to browse and examine data from all sources (in a unified view).
- Users may scale across enterprises while benefiting from integrated governance and security.
- Users can see an output once it has been generated on any device that supports the Power BI application.
- Users can run queries on reports using basic English terms.
2. What is the difference between Power BI and Tableau?
Below are some key differences between Power BI and Tableau:
| Feature | Power BI | Tableau |
|---|---|---|
| Calculation Language | Uses DAX (Data Analysis Expressions) for creating measures. | Uses MDX (Multidimensional Expressions) along with other functions for measures and dimensions. |
| Visualization Library | Offers a wide range of built-in visualizations with easy customization. | Provides an extensive visualization library with deeper customization options. |
| Data Handling Capacity | Handles moderate data volumes effectively but struggles with very large datasets. | Can handle massive datasets and complex queries efficiently. |
| Ease of Use | Simple interface, suitable for beginners as well as professionals. | A bit tough, best suited for experienced users and professionals. |
| Cloud Support | Cloud integration is available but with certain limitations on large-scale handling. | Strong cloud support, well-suited for large enterprises. |
3. Differentiate between Power BI and Excel.
| Feature | Power BI | Excel |
|---|---|---|
| Tabular Reports | Not ideal for creating traditional tabular reports. | Well-suited for detailed tabular reports. |
| Duplicate Tables | Cannot display duplicate tables directly. | Allows users to display duplicate tables easily. |
| Reports | Provides interactive and personalized reports with cross-filtering between charts. | Limited interactivity and advanced cross-filtering between charts is not available. |
| Analytics | Offers easy-to-use analytics, mainly focused on data visualization. | Provides advanced analytics with complex formulas, pivot tables and statistical functions. |
| Applications | Best for creating dashboards, KPIs and alerts with real-time insights. | Useful for calculations, financial models and newer charts exist but lack direct data model connections. |
4. What is the difference between Calculated Columns, Calculated Tables and Measures?
| Aspect | Calculated Columns | Calculated Tables | Measures |
|---|---|---|---|
| Definition | Adds a new column to an existing table using a DAX formula. | Creates a new table using DAX expressions instead of pulling from a data source. | Performs on-the-fly calculations using DAX functions. |
| Where Created | Can be created in both Report View and Data View. | Can be created in both Report View and Data View. | Can only be created in Report View. |
| Use Case | Useful when data from the source isn’t in the required format (e.g., splitting full names into first/last names). | Helpful for storing intermediate or user-requested data inside the model. | Best for business calculations like sales forecasting, running totals, growth %, YOY comparisons, etc. |
| Storage | Stored in the model and increases data size. | Stored in the model and increases data size. | Not stored and calculated dynamically, so they don’t increase model size. |
| Performance | Can slow down model performance if many columns are added. | May impact performance depending on table size. | More efficient since they calculate results on demand. |
5. What are the differences between a Power BI dataset, Report and a Dashboard?
| Aspect | Power BI Dataset | Power BI Report | Power BI Dashboard |
|---|---|---|---|
| Purpose | Data storage and modeling | Data visualization and analysis | Data presentation and navigation |
| Function | Stores, cleans and prepares data for reporting. | Displays visualizations and insights from a dataset. | Organizes visuals and reports into a single-page view. |
| Created In | Built in Power Query or Power BI Desktop. | Created and edited in Power BI Desktop. | Created in Power BI Service by pinning visuals from reports. |
| Interactivity | No direct user interactivity. | Fully interactive with filters, slicers and drill-through. | Limited interactivity (supports drill-through but not full filtering). |
| Export Options | No export or print options. | Allows export of visuals and reports. | Can export dashboard visuals but with limited options. |
6. How can you refresh data in Power BI?
Data can be refreshed in Power BI in the following manner:
- To manually update data in Power BI Desktop, click the "Refresh" button on the Home tab to update your report with the latest information from your sources.
- You can choose frequency like daily or weekly when you schedule automatic data refresh for published reports in the Power BI Service.
- In the Power BI Service, dataflows can be scheduled for refresh to keep shared datasets current.
- Data is always real-time for DirectQuery and Live Connection and doesn't need to be manually refreshed.
- To automate data refresh processes and guarantee data accuracy, use Power BI Gateway, Power Automate, APIs or PowerShell.d
7. What are the major components of Power BI?
There are five different components of Power BI.
- Power Pivot: Fetches and cleans data and loads on to Power Query
- Power Query: Operates on the loaded data
- Power Q&A: Makes it possible for users to interact with reports using simple English language
- Power View: Lets users create interactive charts, graphs, maps and other visuals
- Power Map: Enables the processing of accurate geographic locations in datasets
8. What is Power Query in Power BI?
Power Query in Power BI is a data connection and transformation tool that helps you import, clean and reshape data before using it for analysis and reporting. It allows users to connect to multiple data sources, apply transformations and prepare the data without needing complex coding.
- Used for data extraction, transformation and loading (ETL).
- Provides a user-friendly editor to clean and format data.
- Supports connections to databases, Excel, cloud services and APIs.
- Uses the M language in the background for transformations.
9. What are different data sources in Power BI?
Power BI supports a wide variety of data sources that you can connect to for building reports and dashboards. These can be broadly grouped as:
1. File Sources
- Excel (.xlsx, .xlsm)
- CSV (.csv)
- XML
- JSON
2. Database Sources
- SQL Server
- Oracle Database
- MySQL
- PostgreSQL
3. Online Services
- Microsoft Azure
- Power BI Datasets
- Dynamics 365
- Google Analytics
- Salesforce
4. Cloud & Big Data Sources
- Hadoop (HDFS)
- Spark
- Google BigQuery
- Amazon Athena
- Azure Blob Storage
5. Other Sources
- Web (URL data)
- R Script / Python Script
- APIs (through custom connectors)
10. What is data modelling in Power BI and how do relationships work within it?
Data modelling in Power BI is the process of structuring and organizing data so that it can be used effectively for analysis and reporting. It involves:
- Creating tables (from data sources).
- Defining calculated columns, measures and hierarchies.
- Establishing relationships between tables.
A key part of data modelling is creating relationships between two tables, which connect data using common fields like CustomerID or ProductID. These relationships can be:
- One-to-Many (1:*): One record relates to multiple records like One Customer → Many Orders.
- Many-to-Many (:); Multiple records relate to multiple records like Students ↔ Courses.
- One-to-One (1:1): When each row in one table matches exactly one row in another like Employee → Employee ID.
11. What is Power Pivot in Power BI?
Power Pivot in Power BI is a data modelling component that lets you build relationships between tables, create calculations and manage large datasets efficiently. It uses DAX (Data Analysis Expressions) to define calculated columns, tables and measures making it possible to perform advanced analysis beyond simple visualizations.
- Helps in creating relationships between multiple tables.
- Allows complex calculations using DAX.
- Optimized for handling large volumes of data.
- Works as the engine behind data models in Power BI.
12. Difference Between Power View and Power Map?
| Aspect | Power View | Power Map |
|---|---|---|
| Purpose | Used for creating interactive reports and dashboards. | Used for 3D geographical data visualization. |
| Visualization Style | Tables, charts, cards, maps and interactive visuals. | 3D maps, globe view and time-based animations. |
| Focus | Focuses on data analysis and storytelling through visuals. | Focuses on geospatial analysis (data across locations and over time). |
| Interactivity | Highly interactive with filtering, slicing and drill-down. | Allows exploration of data over time and geography. |
| Integration | Part of Excel add-ins and connected with Power BI for reports. | Available as an Excel add-in (later called 3D Maps). |
13. What is Power Q&A in Power BI?
Power Q&A in Power BI is a feature that lets users ask questions about their data in natural language and get instant answers in the form of charts or visuals. Instead of writing queries, you can type (or even speak) questions like “Total sales by region” or “Top 5 products by revenue” and Power BI automatically generates the appropriate visualization.
- Uses natural language processing (NLP).
- Suggests relevant questions as you type.
- Provides instant, interactive visuals.
- Makes data exploration simple for non-technical users.
14. What are the different ways to filter the data in Power Bi?
Data can be filtered in Power BI using various filters. There are:
1. Visual-Level Filters
- Apply a filter to a single visual (chart, table or card).
- Only affects that particular visual on the report page.
2. Page-Level Filters
- Apply a filter to all visuals on a specific report page.
- Useful for focusing the page on a specific subset of data.
3. Report-Level Filters
- Apply a filter to all pages in the report.
- Ensures consistency of filtered data across the entire report.
4. Drillthrough Filters
- Allows users to right-click on a visual and navigate to another page showing detailed filtered data.
- For example click on a country in a map to see sales details for that country.
5. Slicers
- Interactive visual filters that allow users to select values dynamically.
- Can be single-select or multi-select.
6. Top N Filters
- Show only the top or bottom N items based on a measure.
- For example top 10 products by revenue.
7. Cross-Filtering / Cross-Highlighting
- Clicking on one visual automatically filters or highlights data in other visuals on the page.
8. Advanced Filters
- Supports logical conditions like
greater than,less than,containsor custom formulas.
15. Difference between Slicers vs Filters?
| Aspect | Slicers | Filters |
|---|---|---|
| Purpose | Allows interactive selection of values to filter visuals. | Used to apply static or pre-set filters on visuals, pages or reports. |
| User Interaction | Users can click and select values directly on the report. | Usually configured in the filter pane and not directly clickable on the report. |
| Visual Representation | Appears as a visual element (list, dropdown, slider, date picker) on the report. | Not a visual and exists in the filter pane. |
| Scope | Can filter one or multiple visuals depending on connections. | Can be applied at visual, page or report level. |
| Ease of Use | More intuitive and user-friendly for end-users. | Less interactive and primarily used to control report behavior. |
16. What are the different types of visualizations in Power BI?
Power BI provides a variety of visualization types to represent data effectively. These include:
- Bar and Column Charts: Vertical and horizontal bars to compare data across categories.
- Line and Area Charts: Show trends over time or continuous data.
- Pie and Donut Charts: Represent proportions or percentages of a whole.
- Card and KPI Visuals: Display key metrics or single values prominently.
- Tables and Matrices: Show detailed data in rows and columns. Matrices support hierarchical data.
- Scatter and Bubble Charts: Display relationships and correlations between numeric values.
- Maps: Geographical visualizations including basic maps, shape maps and ArcGIS maps.
- Funnel Charts: Represent stages in a process like sales or conversions.
- Gauge and Dial Charts: Show progress against a target or goal.
- Waterfall Charts: Illustrate cumulative effects of sequential positive and negative values.
- Decomposition Tree: Break down a measure across multiple dimensions interactively.
- Ribbon Charts: Show ranking changes of categories over time.
- Custom Visuals: Additional visuals imported from the Power BI marketplace for specialized needs.
17. What is DAX? What are the benefits of using variables in DAX?
DAX or Data Analysis Expressions is a formula language used in Power BI, Power Pivot and Analysis Services to perform data calculations and analysis. It allows you to create calculated columns, measures and tables to enhance your data model.
- Used for aggregations, calculations and data manipulation.
- Works with tables and relationships in the data model.
- Similar to Excel formulas but designed for relational data.
DAX Syntax:
MeasureName = VAR x = <expression>
RETURN x
DAX Example:
TotalSalesWithTax = VAR SalesAmount = SUM(Sales[Amount])
RETURN SalesAmount * 1.1
Benefits of Using Variables in DAX
- Improves readability of complex formulas.
- Enhances performance by calculating values once and reusing them.
- Simplifies complex calculations.
- Makes debugging easier by testing parts of the formula individually.
18. What are the three fundamental concepts of DAX?
Three fundamental concepts of DAX are as follows:
1. Row Context
- Refers to calculations performed row by row in a table.
- Example: Calculating Profit = Sales[Amount] – Sales[Cost] for each row.
2. Filter Context
- Refers to the subset of data applied to a calculation using filters, slicers or measures.
- Example: Total Sales for a specific Region or Year.
3. Context Transition
- Occurs when row context is converted into filter context inside a measure, typically with functions like CALCULATE().
- Example: Using CALCULATE(SUM(Sales[Amount]), Region="India") in a measure.
19. What are the most common DAX functions used?
Some of the most commonly used DAX functions are listed below:
- Aggregation Functions: SUM, MIN, MAX, AVG, COUNTROWS, DISTINCTCOUNT
- Information Functions: ISBLANK, ISFILTERED, ISCROSSFILTERED
- Statistical Functions: GEOMEAN, MEDIAN
- Logical Functions: IF, AND, OR, SWITCH
- Date & Time Functions: DATEDIFF, DATEVALUE
- Filter Functions: VALUES, ALL, FILTER, CALCULATE, TOPN
- Other Functions: UNION, INTERSECT, EXCEPT, NATURALINNERJOIN, NATURALLEFTEROUTERJOIN, SUMMARIZECOLUMNS, ISEMPTY, VAR
20. Difference Between COUNTROWS and DISTINCTCOUNT in DAX
| Function | Purpose | Example |
|---|---|---|
| COUNTROWS | Counts the total number of rows in a table or table expression (including duplicates) | COUNTROWS of Sales counts all rows in the Sales table |
| DISTINCTCOUNT | Counts the number of unique values in a column | DISTINCTCOUNT of Sales[CustomerID] counts unique customers in Sales |
21. What is the CALCULATE function in DAX?
The CALCULATE function in DAX is used to modify the filter context of a calculation and evaluate an expression under those filters. It is one of the most important DAX functions because it allows dynamic calculations based on specific conditions.
- Changes the filter context for a measure or calculation.
- Can apply multiple filters at once.
- Often used with aggregations like SUM, AVERAGE, COUNT, etc.
Syntax:
MeasureName = CALCULATE(<expression>, <filter1>, <filter2>, …)
Example:
TotalSalesIndia = CALCULATE(SUM(Sales[Amount]), Sales[Country] = "India")
22. What is Filter Context?
Filter Context is the set of filters applied to a calculation or measure that determines which data is included in the result. It is created automatically by slicers, filters, rows, columns or measures in a report.
- Determines the subset of data for calculations.
- Can be applied manually using functions like CALCULATE or automatically via report visuals.
- Essential for dynamic and accurate measures.
For example, If you have a measure Total Sales = SUM(Sales[Amount]) and a page filter Region = "India", the filter context ensures that Total Sales shows only the sales from India.
23. What are custom visualizations in Power BI?
Power BI allows users to add customized visual elements to their reports and dashboards. These custom visuals, which can be created by users or third-party developers, offer unique ways to present and analyze data beyond the standard visuals provided by Power BI.
By exploring the Custom Visuals Gallery in Power BI, users can discover and integrate these custom visuals into their reports to enhance the presentation and analysis of data. These custom visuals are especially useful when industries require specialized chart types or when the standard visuals don't meet specific visualization requirements. Overall, custom visuals in Power BI enable users to create more engaging and tailored reports and dashboards.
24. Difference Between Row Context and Filter Context in DAX
| Aspect | Row Context | Filter Context |
|---|---|---|
| Definition | Applies row by row in a table. | Applies filters to a set of data for a calculation. |
| How It Works | Each row is treated individually for the calculation. | Only the rows that meet the filter conditions are considered. |
| Usage | Used in calculated columns and iterators (e.g., SUMX). | Used in measures, slicers, report filters or CALCULATE function. |
| Example | Profit = Sales[Amount] – Sales[Cost] (for each row) | Total Sales for Region = "India" shows sum only for India. |
25. What are Measures in DAX?
Measures are calculations in Power BI, Power Pivot or Analysis Services that compute results dynamically based on the current filter context. Unlike columns, they aren’t stored in the table, instead they are evaluated dynamically whenever you interact with visuals, slicers or filters in your report.
- Created using DAX formulas.
- React to filters, slicers and other visuals automatically.
- Commonly used for sum, average, count, percentage or custom calculations.
- Stored in the data model, not in individual rows.
Example:
Total Sales = SUM(Sales[Amount])
It shows the total sales dynamically based on applied filters like region or year.
26. What are different DAX Aggregate Funtions?
Common DAX Aggregate Functions:
- SUM: Adds up all numeric values in a column. For example: SUM(Sales[Amount])
- AVERAGE: Calculates the average of numeric values in a column. For example: AVERAGE(Sales[Amount])
- MIN: Returns the smallest value in a column. For example: MIN(Sales[Amount])
- MAX: Returns the largest value in a column. For example: MAX(Sales[Amount])
- COUNT: Counts the number of non-blank values in a column. For example: COUNT(Sales[OrderID])
- COUNTA: Counts all non-empty values including text, numbers and dates. For example: COUNTA(Sales[CustomerName])
- COUNTROWS:Counts the number of rows in a table or table expression. For example: COUNTROWS(Sales)
- DISTINCTCOUNT: Counts unique values in a column. For example: DISTINCTCOUNT(Sales[CustomerID])
- PRODUCT: Returns the product of all values in a column. For example: PRODUCT(Sales[Quantity])
- MEDIAN: Returns the median value of a column. For example: MEDIAN(Sales[Amount])
- SUMX: Row-wise sum then aggregate the results. For example: SUMX(Sales, Sales[Quantity] * Sales[Price])
27. What are the different views available in Power BI Desktop?
Power BI has three distinct views, each serving a unique purpose:
1. Report View
- Used to create and design reports and dashboards.
- Allows you to drag visuals, charts and slicers in canvas.
2. Data View
- Lets you view, explore and manage your data in tables.
- You can create calculated columns, measures and explore row-level data.
3. Model View
- Used to define relationships between tables and manage the data model.
- Allows you to see table connections, create relationships and organize the model visually.
28. What is a Conditional Column in Power BI?
A Conditional Column in Power BI is a column created based on a condition or rule applied to existing columns. It allows you to categorize or transform data without writing DAX formulas.
- Created in Power Query Editor.
- Values in the new column depend on conditions applied to other columns.
- Useful for categorizing, grouping or flagging data.
Syntax Example:
if [SalesAmount] > 1000 then "High"
else if [SalesAmount] >= 500 then "Medium"
else "Low"
Here:
- If SalesAmount > 1000 → High
- If SalesAmount between 500–1000 → Medium
- If SalesAmount < 500 → Low
29. What are Append Queries in Power BI?
Append Queries in Power BI is a feature in Power Query Editor that allows you to combine rows from two or more tables into a single table. It’s like stacking tables on top of each other.
- Used when tables have similar columns.
- Helps consolidate data from multiple sources.
- Can append two tables at a time or multiple tables.
Syntax Example:
Table.Combine({Table1, Table2})
Here:
- It combines Table1 and Table2 into a single table.
- Resulting table contains all rows from both tables.
30. Difference Between Visual, Report and Dashboard in Power BI
| Aspect | Visual | Report | Dashboard |
|---|---|---|---|
| Definition | A single chart, graph or tile representing data. | A collection of multiple visuals on one or more pages. | A single-page view that pins visuals from one or more reports. |
| Purpose | Display one data insight. | Analyze data in detail with multiple visuals. | Monitor key metrics and KPIs at a glance. |
| Interactivity | Can be filtered, sliced or highlighted individually. | Fully interactive with slicers, filters and drill-through. | Limited interactivity and mostly view-only. |
| Creation | Created directly in Power BI Desktop. | Created in Power BI Desktop with multiple visuals. | Created in Power BI Service by pinning report visuals. |
| Share | Cannot export individually. | Can be exported as PDF or PowerPoint. | Can share dashboard links or embed in apps. |
31. How to Remove Null and Duplicate Values in Power BI
1. Removing Null Values:
- Go to Power Query Editor.
- Select the column(s) where you want to remove nulls.
- From the Home tab → Remove Rows → Remove Blank Rows.
Example: If a CustomerID column has null values, they will be removed.
2. Removing Duplicate Values:
- In Power Query Editor, select the column(s) where duplicates may exist.
- From the Home tab → Remove Rows → Remove Duplicates.
Example: If the Sales table has duplicate OrderID, selecting OrderID and removing duplicates will keep only unique orders.
32. What is KPI in Power BI?
A KPI (Key Performance Indicator) in Power BI is a visual used to track progress toward a specific goal or business target. It helps measure performance by comparing actual values against a target value.
- KPI visuals show status (current value), target (goal) and trend (progress over time).
- Useful for monitoring metrics like sales vs. target, revenue growth, customer satisfaction, etc.
- Created using measures in DAX (for actual and target values).
Example: If you want to track Sales Performance:
- Actual Sales = SUM(Sales[Amount])
- Target Sales = 1,00,000
- KPI visual shows whether actual sales are below, meeting or above the target.
33. What are Add-ins in Power BI?
Add-ins in Power BI are extra tools or extensions that you can integrate with Power BI to extend its functionality. They allow users to bring in advanced visuals, connect with other applications or use specialized features that aren’t available by default.
Types of Add-ins:
- Custom Visuals: Imported from AppSource or developed by users. It can include heat maps, word clouds, etc.
- Office Add-ins: Power BI add-ins available in tools like Excel and PowerPoint to embed or analyze Power BI data.
- Third-party Add-ins: External connectors and tools that integrate Power BI with services like Salesforce, Adobe Analytics, etc.
Example:
- Embedding Power BI reports in PowerPoint using the Power BI add-in.
- Importing a Hierarchy Slicer visual from AppSource into Power BI Desktop.
34. Find Average Sales per Customer.
We can write dax query like:
Avg Sales per Customer =
DIVIDE(
SUM(Sales[Amount]),
DISTINCTCOUNT(Sales[CustomerID])
)
35. Find Distinct number of Products sold.
We can write dax query like:
Unique Products = DISTINCTCOUNT(Sales[ProductID])
36. Find Total Employees who joined after 2020.
We can write dax query like:
Employees_After2020 =
CALCULATE(
COUNTROWS(Employee),
Employee[JoiningYear] > 2020
)
37. Find Year-over-Year (YoY) Growth in Sales.
We can write dax query like:
YoY Sales Growth =
DIVIDE(
[Total Sales] - CALCULATE([Total Sales], SAMEPERIODLASTYEAR(Date[Date])),
CALCULATE([Total Sales], SAMEPERIODLASTYEAR(Date[Date]))
)
38. Find % of Total Sales by Region.
We can write dax query like:
Sales % by Region =
DIVIDE(
SUM(Sales[Amount]),
CALCULATE(SUM(Sales[Amount]), ALL(Sales[Region]))
)
39. Find Top 5 Products by Sales in 2023.
Use a Top N filter in the visual:
- Add
ProductandTotal Sales - Apply Top N = 5 by Sales OR in DAX:
Top5 Products =
TOPN(5, SUMMARIZE(Sales, Sales[Product], "Sales", SUM(Sales[Amount])), [Sales], DESC)
40. Your report is very slow because of large data. What steps can you take?
- Reduce data using filters before loading.
- Use Import Mode instead of DirectQuery.
- Remove unnecessary columns.
- Use Aggregations for summary tables.
41. How to ask Power BI “Show me total sales in 2023” in natural language. How will you do this?
We can use Power Q&A by typing the question directly into the Q&A visual.
Syntax:
total sales in 2023
42. If we have two tables: Customers and Orders. How do you connect them?
Create a One-to-Many relationship by CustomerID in Customers → CustomerID in Orders.
Syntax:
Customers[CustomerID] 1 → * Orders[CustomerID]
43. How can you merge two datasets like Online Sales and Store Sales into one?
Use Append Queries in Power Query.
Syntax:
Combined Sales = Append(Online Sales, Store Sales)
44. You want to add a new column that says "Pass" if marks > 40 else "Fail". How will you do this?
Use Conditional Column in Power Query with rule: If Marks > 40 → Pass, Else → Fail.
Syntax:
Result = if [Marks] > 40 then "Pass" else "Fail"
45. How can sales data be summarized by Region and Month. How do you do this?
Use a Matrix visualization with Region as rows, Month as columns and Sales as values.
Syntax:
Rows = Sales[Region]
Columns = Sales[Month]
Values = SUM(Sales[Amount])
46. How to analyze trends in Sales over time. Which visualization will you use?
Answer: Use a Line Chart with Date on X-axis and Sales on Y-axis.
47. Make KPI showing whether actual sales met the target. How do you create it?
Create Actual Sales and Target Sales measures, then use a KPI visual to compare.
Syntax:
Actual Sales = SUM(Sales[Amount])
Target Sales = SUM(Targets[TargetAmount])
48. You need to restrict data visibility so that regional managers only see data for their own region. How will you achieve this?
- Implement Row-Level Security (RLS) in Power BI.
- Define roles in Power BI Desktop (e.g., [Region] = USERPRINCIPALNAME() mapping).
- Publish report to Power BI Service and assign roles to specific users.
49. How to create a dynamic title for your report page that changes based on the selected year.
Use a Card visual with a measure:
DynamicTitle = "Sales Report for " & SELECTEDVALUE(Date[Year])
50. You want to combine multiple date tables into one master date table. How do you do it?
- Use Power Query
- Append Queries
- Combine all date tables
- Remove duplicates.
MasterDate = Table.Distinct(Table.Combine({Date1, Date2, Date3}))
51. How to show a trend of cumulative sales over the year.
Create a Running Total measure in DAX:
Cumulative Sales = CALCULATE(SUM(Sales[Amount]), FILTER(ALL(Date), Date[Date] <= MAX(Date[Date])))