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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Jerush
Helper I
Helper I

How to use the Group By function using the DirectQuery (SQL)

Hi All.

 

I am having issues with using the Group By function. I am using a direct query. I have to use this option due to the report requirements. So I cannot change to import mode. 
Please see below for the message I get, and the data does not group then.

 

TransformData_Connection.pngTransformData1.png

Message

TransformData_GroupBy.png

1 REPLY 1
v-zhenbw-msft
Community Support
Community Support

Hi @Jerush ,

 

There are some limitations in DQ transformation. If you use a transformation that is too complex, you receive an error that either it must be deleted or the model switched to import.

Please refer this document.

 

What result do you need to use Group By function?

Maybe you can try measures.

 

If it doesn’t meet your requirement, could you please provide a mockup sample based on fake data? Do you want to calculate the sum of each name?

It will be helpful if you can show us the exact expected result based on the tables.

 

Please upload your files to OneDrive For Business and share the link here. Please don't contain any Confidential Information or Real data in your reply.

 

Best regards,

 

Community Support Team _ zhenbw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors