Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
TMJForrester
Frequent Visitor

User Defined Aggregations - Direct Query with Power BI Dataset and Azure AS

Hi all,

 

Is it possible to create a user-defined aggregation from a Power BI dataset/Azure Analysis Services model connected via DirectQuery?

 

It seems like the option is available to use (as an example, I have a report connected to an AAS model via DQ, a separate aggregation table imported, and the "Manage Aggregations" option works like normal). But after running a trace in DAX Studio's Server Timings tab to test my aggregation, the query trace doesn't show that a match was found. I've tried the aggregation with both defined relationships and GroupBy columns, but no such luck.

 

Has anyone tried using aggregation tables with DirectQuery for PBI datasets/AAS before? Or is this only available for traditional DQ sources like SQL Server?

 

Using DirectQuery for datasets and Analysis Services (preview) - Power BI | Microsoft Learn

4 REPLIES 4
stephiemomo
Frequent Visitor

I'm facing exactly the same situation and have no choice but to go through PowerBI datasets. Has anyone found a solution to this problem please? I am a taker for any advice.

lbendlin
Super User
Super User

Aggregation tables are supposed to be based on import mode.

My aggregation table is imported into my model - the rest of the tables in my model (including my main Fact table) are using DirectQuery mode. Isn't that how user-defined aggregations are supposed to work? Or am I misunderstanding something?

That is correct - in the vast majority of scenarios.  There are corner cases where you need to do it the other way round.

 

If the query engine didn't engage the aggregation table then you must have some query filters that interfere.

 

This article may help User-defined aggregations - Power BI | Microsoft Learn

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.