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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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