Interview
Interview
1) Static 2) Dynamic
In RLS we will be creating Role in PBI Desktop and assign role in PBI Service.
Static is simple to create and dynamic need some IT skills.
Static:
1) 1st we need to decide which column we will be filtering.
2) we will be creating role in PBI desktop under manage role option.
3) In PBI Service, we have security option to dataset.
4) Created role will be assigned with specific email ids in PBI Service.
Dynamic:
1) 1st we need to decide which column we will be filtering.
2) we must create a user table. then we need to upload it to our model.
3) we need to build relation with this table.
4) If we have Many to Many relations with fact and user table then we will be
creating bridge table.
5) we will be using Userprincipalname dax to create role in PBI Desktop.
6) In PBI Service, we have security option to dataset.
7) Created role will be assigned with specific email ids in PBI Service.
Incremental Refresh:
Instead of refreshing complete data we will be doing partition of the data and
we will be refreshing.
1) This is applied to fact table.
2) This is applied query folding data source.
3) Date/Time column should be.
Steps:
1) Create 2 parameters in PQ
a) RangeStart b) RangeEnd these are Case Sensitive.
2) Filter the datetime column with parameters which created.
3) In PP we need to apply the incremental refresh.
4) we can assign the rule for archiving of data and refreshing of data.
Report/Query Optimization
1) When we are connecting RDBMS data source then Avoid transformation in
PQ. Connect data with Native Query
2) Remove Unnecessary Interactions between Visuals.
3) Don’t use too many visuals: According to ‘Power BI Optimization Guide’
reports should have not more than 8 visuals and one table per page
4) Remove Unwanted columns and filter out Unwanted rows.
5) If your data source server is based in your company’s London office then it is
recommended you host your Power BI desktop file on same location.
6) Check Performance of Custom Visuals with performance Analyzer.
7) Have Star Schema.
8) Avoid Many to Many relations and replace it with bridge table.
9) Use DAX Variable for complex aggregation.
10) Use Power BI Certified Custom Visual.
DISTINCT() does not count BLANK() as a value whereas, VALUES() returns BLANK().
ALL vs. ALLSELECTED ALLEXCEPT DAX functions
here function looks like same but ALL function is going to return table
expression by ignoring context as well as external filters where as ALLSELECTED
will ignore only context filter.
Allexpect will filter will ignore the context and external filter other than the
specified column.
DAX Variable?
In DAX calculation, we can use variables to make the calculations easier to
understand.
When you are writing any complex or nested expression using DAX functions,
variables can help to break these complex calculations into smaller, more
useful sections.
There are main 4 reasons to use DAX variables.
1) Reduce Complexity
2) Easy to Debug
3) Improve Readability
4) Improve Performance
SUM works on a Single Column vs SUMX can take the Table as Input