DP-500 · Question #134
You have a Power BI dataflow named DF1 that contains the following columns: OrderID SaleDate ProductID SalesAmount ProductCategory You create a Power BI dataset named DS1 that uses DF1 as a data…
The correct answer is D. Add a computed column to DS1. To minimize the refresh time of a Power BI dataset (DS1) that aggregates data from a dataflow (DF1) and specifically needs a 'SaleMonth' column, the most efficient first step is to add a computed column for 'SaleMonth' directly within DS1.
Question
- OrderID
- SaleDate
- ProductID
- SalesAmount
- ProductCategory You create a Power BI dataset named DS1 that uses DF1 as a data source. DS1 creates an aggregated view of the data in DF1. The view contains the following columns:
- SaleMonth
- SalesAmount
- ProductCategory You need to minimize how long it takes to refresh DS1. What should you do first?
Exhibit
Options
- AAdd a computed entity to DF1.
- BCreate a custom function in DF1.
- CCreate a linked entity in DF1.
- DAdd a computed column to DS1.
How the community answered
(34 responses)- A12% (4)
- C6% (2)
- D82% (28)
Why each option
To minimize the refresh time of a Power BI dataset (DS1) that aggregates data from a dataflow (DF1) and specifically needs a 'SaleMonth' column, the most efficient first step is to add a computed column for 'SaleMonth' directly within DS1.
Adding a computed entity to DF1 means creating a new entity in the dataflow that derives 'SaleMonth', which adds complexity to the dataflow and increases its refresh time, potentially impacting other datasets that consume DF1.
Creating a custom function in DF1 for 'SaleMonth' would also add complexity to the dataflow and likely increase its refresh time, which isn't the most direct way to optimize DS1's refresh.
Creating a linked entity in DF1 means referencing an existing entity, which doesn't solve the problem of deriving a new 'SaleMonth' column for aggregation purposes.
If the DS1 dataset needs a 'SaleMonth' column derived from 'SaleDate' for aggregation, creating this as a computed column in DS1 itself allows the Power Query engine to compute this during the data load. This leverages the dataset's processing capabilities and avoids making changes to the dataflow (DF1) that might affect other consumers or increase its refresh time unnecessarily, making it an efficient first step for optimizing DS1's refresh.
Concept tested: Power BI dataset optimization and computed columns
Source: https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-common-data-modeling-issues#calculated-columns-versus-measures
Topics
Community Discussion
No community discussion yet for this question.
