InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What are Comments in DAX and why are those useful? |
|
Answer» These roles are basically DEALS for USER access, governance and security and below are roles:
|
|
| 2. |
What are various Functions available DAX? |
|
Answer» MICROSOFT has CATEGORIES Power BI users as below:
|
|
| 3. |
Organization wanted to create Power BI reports like Application.Where it has cover page, in which have menu to navigate to different pages in report and also select slicers in cover page which will apply to all the pages in which for few visuals it should not apply. Is Power BI capable enough to fulfil this kind of requirement? |
|
Answer» Writing comments is very important that it helps others to understand it easily. E.g. You have written 15-20 lines of complex DAX Code for Client ‘C1’ on the particular requirement and after few days you have switched to other Client ‘C2’. Within few weeks after you joined C2, C1 clients reach you and needs code CHANGE in DAX which you earlier have given to them, however, a few weeks back, you were in full swing, wrote the code and you have not written single line comment in your DAX Code about to logic used or variables used or conditions used or functions used or columns used or measures used or tables used ETC. Now you have to again SPEND your time in parsing old code and you are completely lost in complicated code. Finally, you will learn a lesson from the above Example that “Comments” are very important even if you want to understand your own code after a period of time you need to Read Comments. Now in Power BI, we have Single line commenting and Multiline Commenting: Comments are BASICALLY Green in colour.
(OR)
|
|
| 4. |
Organization wanted to show Clustered Column chart where it should display data in Hierarchy as date. E.g. Fiscal year, followed by Months, then weeks, finally Date. Can we attain kind of requirement? |
|
Answer» Logical Functions - These functions return information about values in the expression. E.g. AND, OR, NOT, IF, IFERROR, SWITCH etc. Math and Trig functions – These are like Excel's mathematical and trigonometric functions. E.g. SUM, SUMX, ABS, CEILING, CURRENCY, EVEN, FLOOR, INT etc. Date and time – These date and time functions are like in Microsoft Excel. E.g. CALENDAR, CALENDARAUTO, DATE, DATEDIFF ETC etc. Time-intelligence - These helps in calculations on calendars and dates. E.g. SAMEPERIODLASTYEAR, TOTALMTD, TOTALQTD, TOTALYTD, DATEADD etc. Filter - These returns specific data types, related tables for looking up values, and filter by related values. E.g. CALCULATE, DISTINCT, FILTER, RELATED etc. Information - These used on table or column to provide as a parameter to another function and TELLS exits or not by using TRUE or FALSE E.g. ISERROR, CONTAINS, ISBLANK, LOOKUPVALUE etc. Parent and Child functions - These help users to manage data that is shown as a parent/child hierarchy in the data models. E.g. PATH, PATHCONTAINS, PATHITEM, PATHLENTH, PATHREVERSE. Statistical- These functions perform aggregations and can ALSO filter a column before or create aggregations based on related tables. E.g. AVERAGE, MIN, MAX, COUNT, MEDIAN etc. Text- Can search for text within a string, or concatenate string values or return part of a string or formatting for dates, times, and numbers. E.g. CONCATENATE, FORMAT, LEFT, RIGHT, TRIM etc. Other functions – These are unique functions and cannot be defined by any above categories. E.g. ERROR, EXCEPT, GROUPBY, SUMMARIZECOLUMNS etc. |
|
| 5. |
Organization wished to have only 2 pages of Power BI report with 6 various chart visuals in each page and have almost 15-20 various Slicers/Filters. When you designed report and observed that Most of space is occupied by Slicers, instead you should show most of 6 visuals in page. Deliver your Best solution? |
|
Answer» Yes, this can be achieved.
|
|
| 6. |
Procedure to create Streaming Dataset. |
|
Answer» YES, can be done.
|
|
| 7. |
Elaborate Process to assign Power BI Pro License set of users in your Tenant? |
|
Answer» Yes, it’s possible using options below and can be ENABLED in the View menu.
Process: Finally, insert blank Button and name as “Show Slicers” in field properties Action ASSIGN Bookmark “Select Slicer” |
|
| 8. |
What are Variables in DAX and why we use them in Power BI? |
|
Answer» STREAMING dataset is also called as Real Time Datasets and can create real time Dashboard, which updates just SIMILAR Live Cricket score or Live Football Score or Live Temperature etc.
Go to dataset:
(OR) Go to dashboards:
|
|
| 9. |
What are various Calculations available in power BI? |
Answer»
|
|
| 10. |
What is Context? |
|
Answer» Variables are used to STORE values which allocate in Memory and in future which can be used in any kind of calculation. By using variables, we can SIMPLIFY large (2-10 lines of) complex DAX formula into simple chunks which helps anyone easy to read and understand easily. Variables help in prevent WRITING of the same expression again and again. Syntax: VAR <Variable_Name> = Value or Condition RETRUN <Expression>E.g.
Let’s take DAX formula as complex form WITHOUT variables: Salary status = if (EMP[Salary] >10000, "High", if(EMP[Salary] >=5000 || EMP[Salary] <=1000, "Average", if(EMP[Salary]<=5000, "Low") )Let’s take DAX formula using variables in chunks: Salary status = Var High = EMP[Salary]>10000 Var Avg = EMP[Salary]>=5000 || EMP[Salary]<=1000 Var Low = ‘Emp’[Salary]<=5000 Return If (High, "High", if(Avg,”Average”, if(Low,”Low”) ) )The output will be the same for both without and with Variables, however with Variables easy to read and understand the DAX code. |
|
| 11. |
Types of Operators in DAX? |
|
Answer» One can create DAX Calculations or queries using formulas which can be used based on need basis and called them as
Measures (OR Calculations OR Calculated Measures):
E.g. Net Sales = SUMX(Sales, Sales[Quantity]*Sales[Price])
Calculated Columns:
E.g. Sales_Column = Sales_[Costs]*Sales_[Qty]
Calculated Tables:
E.g. DimDate = CALENDAR("01/01/2019","03/31/2019") Row Filters (RLS – Dynamic Row-level Security):
e.g. You are General Manager of Sales for India and under you have Associate Managers which LOOKS after sales different states in India. So, the requirement is your Associate Managers should be able to see only respective states sales data (not others). This requirement can be achieved by RLS and need to use a username () – for Names or userprincipalname () – for official Email ids DAX functions. |
|
| 12. |
What are Data Types in DAX? |
||||||||||||||||
|
Answer» To create DAX FORMULAS, one should understand Context. Context is nothing but the result of the DAX formula will change based on Current Cell or Row for any related data. Types of Context:
Current Row or a single line of record is called a Row context.
Here we MUST create Measure to derive the Total Sales i.e. Row by Row. Hence we have to use SUMX() Function to calculate the Price X Quantity. In SUMX ‘X’ mean Iterate. Row by Row data calculate/Evaluation Total Sales = SUMX(‘Sales’,’Sales’[Price]*’Sales’[Quantity])
First, go to Row 1 =Take Product of Price and Quantity as 3 * 1 Move to next Row 2= from row 1 result ‘3’, sum up with Product of Price and Quantity as 2*2 And so, on till it reaches the end of the table.
Row 1 = 3*1 Row 2= 3+(2*2) Row 3 = 7+(1*3) Total Sales = 10 Example Snippet for better understanding:
As we all know that Context will change based on Current Cell or Row for any related data. For example, consider Snippet below, you pull the Net Sales into Table or Matrix visual (Basically Tabular model), then according to Row and columns are chosen from Dimension table, Slicers selected or any kind of report filters applied Data will appear.
Filter context is simply is applying a filter on evaluation while creating Measure. E.g. Below used Calculate() function which has the capability to change the context by applying filters. Basically its evaluation Profit for Same Period Last Year using SamePeriodLastYear() function in Calculate. |
|||||||||||||||||
| 13. |
SUMX( Filter( Values(‘Location’[Country]), IF( ‘Location’[Country] =’India’, [SalesAmount] * 0.2, [SalesAmount] * 0.1 ) ) ) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Answer» FOUR types of operators are available in DAX Language to perform calculations: To compare values then use Comparison Operators.
To perform arithmetic calculations on values, use Arithmetic Operators.
To join or concatenate two or more Text values then Concatenation operators.
To return SINGLE values based on True or False, use Logical operators.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 14. |
E.g. |
|
Answer» There are two types
|
|
| 15. |
Explain the order of Logically processing & execution DAX Functions if we have nested functions? |
|
Answer» It’s very important to understand the Logical Processing & execution in DAX and also to FORMAT using PRESSING (Shift+Enter) to moving it to next LINE and indented with spaces, unlike excel functions to WRITE in 1 line mixing all the formulas in the formula bar. |
|
| 16. |
What is DAX and where it is used in Power BI? |
|
Answer» DAX is the language of Power BI. It STANDS for Data Analysis Expressions. It is a functional language much like the Excel formulas. Power BI PRODUCT team created DAX by mashing up “Excel formula Language”, “SQL Language” and “MDX Language” DAX is Simple, but it’s not easy. Do not TRY to learn It in the usual way. You need to spend time to understand hard parts. E.g. Syntax elements:
|
|
| 17. |
How to decide or choose the best visual according to data? |
||||||||||||||||
Answer»
|
|||||||||||||||||
| 18. |
What are “Hot Ideas” in PowerBI.com, how will they help you and Have you submitted “Ideas” in Power BI, if any? |
Answer»
|
|
| 19. |
In Power BI communities, by any chance have you went through “Data Stories Gallery”? |
Answer»
Steps to go to Data Stories Gallery:
|
|
| 20. |
Organization wished to analyze Power BI report data in excel, is It possible? |
|
Answer» Yes, it’s possible by following the steps below:
|
|
| 21. |
What are the Unique Features of a Power BI report? |
Answer»
|
|
| 22. |
What are the Unique Features of a power bi dashboard? |
Answer»
|
|
| 23. |
Explain Storage mode: Mixed and can we establish relationships between different table in data model? |
|
Answer» This major feature is introduced in JULY 2018 called Composite MODEL. Here, POWER BI desktop author is empowered to combine the data which is coming from a variety of sources and establish relationships between those tables in data model.
|
|
| 24. |
Organization is owning Power BI workspace, has 10 members and wish to give access for few members Dashboard, for few reports, for few Datasets. Can we achieve this? |
|
Answer» To attain this need to create Content Pack,
|
|
| 25. |
Organization is owning Power BI workspace and wish to give access to members based out of managing their respective Locations. Best solution? |
|
Answer» This can be achieved by DYNAMIC Row Level Security(RLS) in Power BI. Steps to be followed:
Once users LOG in to Power BI service with respective user id (UserPricnicpalName()) they will be able to SEE only data based on role we created. |
|
| 26. |
Incremental refresh is accessible in which licensing? |
|
Answer» Incremental refresh feature is released in May 2018, it is traditionally RESERVED for large models (Like more than 1 GB) in analysis servers for high-end scalability of data by PUBLISHING only to workspace in Power BI Service where Premium CAPACITY is enabled for them. To enable it just right click on tables in fields pane and enable Incremental refresh. |
|
| 27. |
In Premium licensing. Will Pro users, Frequent Users & Occasional Users be charged? |
|
Answer» BASED on your organization and users Capacity, pricing must be planned.
|
|
| 28. |
What is Premium Capacity? Am I using Premium Capacity? How and where can I confirm? |
|
Answer» Premium Capacity is a way to have dedicated server/node for better handling Power BI Service Workload for your organization which supports up to 1 TB of data storage. Premium capacity can be identified by seeing Diamond icon beside our APP workspace and it can be assigned by Office 365 GLOBAL ADMINISTRATOR (OR) Power BI Service Administrator. Diamond icon Steps:
|
|
| 29. |
No of portals & centers available for Administering Power BI. |
|
Answer» Portals and centers are User friendly GUI tools available for organization which running in the cloud(Azure) and will help in providing access, managing users and security.
|
|
| 30. |
List available administrator roles in Power BI and where all these can be managed? |
|
Answer» These roles are basically DEALS for USER access, governance and security and below are roles:
|
|
| 31. |
Name 4 types of roles-based usage of Power BI? |
|
Answer» Microsoft has categories Power BI users as below:
|
|