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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.