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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
manavnayak
Frequent Visitor

Data Wrangler Aggregation does not work properly for Spark Data Frames

Hi Team,

 

When we are creating a Spark Data Frame and open Data Wrangler and if we try to add "Group by and aggregate" operation under "aggregation" section when we select a particular column it does not show all the aggregation options for the selected column. It just shows 5 aggregations i.e. count, first value, last value, number of distinct values and mode.


I think this is a bug. I hope you are able to understand the issue.

 

manavnayak_0-1720513864846.png

 

1 ACCEPTED SOLUTION
v-huijiey-msft
Community Support
Community Support

Hi @manavnayak ,

 

I tried to reproduce your error, and my environment is as shown below:

vhuijieymsft_0-1720668340628.png

 

After I run the cell, I open Data Wrangler and use the Group by and aggregate options.

vhuijieymsft_1-1720668340639.png

 

When the data type is numeric, all options are displayed, including sum, max, min, etc. in addition to your options.

vhuijieymsft_2-1720668355725.png

vhuijieymsft_3-1720668355728.png

 

I reproduce your error when the data type is text.

vhuijieymsft_4-1720668365906.png

vhuijieymsft_5-1720668365908.png

 

So I think your error is caused by incorrect value type.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

View solution in original post

2 REPLIES 2
manavnayak
Frequent Visitor

Hi @v-huijiey-msft understood.

Thank you for providing detailed explanation fro the same.

v-huijiey-msft
Community Support
Community Support

Hi @manavnayak ,

 

I tried to reproduce your error, and my environment is as shown below:

vhuijieymsft_0-1720668340628.png

 

After I run the cell, I open Data Wrangler and use the Group by and aggregate options.

vhuijieymsft_1-1720668340639.png

 

When the data type is numeric, all options are displayed, including sum, max, min, etc. in addition to your options.

vhuijieymsft_2-1720668355725.png

vhuijieymsft_3-1720668355728.png

 

I reproduce your error when the data type is text.

vhuijieymsft_4-1720668365906.png

vhuijieymsft_5-1720668365908.png

 

So I think your error is caused by incorrect value type.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

Helpful resources

Announcements
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!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.