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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugFabric_Carousel

Fabric Monthly Update - August 2024

Check out the August 2024 Fabric update to learn about new features.

August Carousel

Fabric Community Update - August 2024

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