In Power Query Editor you have a query named FactSales that contains 25 million rows with the columns TerritoryID, OrderDate, and SalesAmount. You must create a second query named TerritoryStats that
returns exactly one row per TerritoryID,
includes two aggregated columns: TotalSales (sum of SalesAmount) and FirstSaleDate (earliest OrderDate), and
is loaded to the data model while FactSales continues to load using incremental refresh. The solution must minimize memory usage and avoid bringing another full copy of the 25 million detail rows into the evaluation container during refresh. Which approach should you use?
Reference the FactSales query, apply a Group By transformation on TerritoryID that sums SalesAmount and finds the earliest OrderDate, and load both queries.
Within FactSales itself, insert a Group By step that aggregates on TerritoryID, then create a new query that references FactSales and removes unnecessary columns.
Duplicate the FactSales query, then apply a Group By transformation on TerritoryID to create TotalSales and FirstSaleDate, and load both queries.
Create a Mashup Evaluation Container to pre-aggregate FactSales, then disable load for FactSales and load only the aggregated result.
Create a Reference of the FactSales query and then add a Group By step that groups on TerritoryID and defines a Sum aggregation for SalesAmount and a Minimum aggregation for OrderDate. Because the referenced query inherits the existing steps of FactSales, you avoid duplicating the transformation logic, and-assuming the source supports query folding-the entire Group By folds back to the data source so only the aggregated rows are returned. This keeps memory consumption low while leaving the incremental-refresh policy on FactSales untouched. A Duplicate would copy every step of FactSales into an independent query, forcing you to maintain two sets of logic and still triggering a second evaluation of the 25-million-row source.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is query folding in Power BI?
Open an interactive chat with Bash
What is the difference between Duplicate and Reference in Power BI?
Open an interactive chat with Bash
What is incremental refresh and how does it work?
Open an interactive chat with Bash
Microsoft Power BI Data Analyst
Prepare the data
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .