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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Data flow - grouping - all rows loses data types on expand

I can do this in a dataset -  grouping by a field and all rows so that I can then expand back out all the rows after the grouping. No issues with data types. 

when I repeat exactly the same thing in a dataflow I have to reassign the field data types of all columns expanded out.   Am I doing something wrong?

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

 

You can try data type detection.

me-detect-data-type-icon-any-column.png

 

Reference: https://docs.microsoft.com/en-us/power-query/data-types#data-type-detection

 

 

 

Best Regards,

Stephen Tao

 

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

lbendlin
Super User
Super User

Not clear what the issue is. Can you post a sanitized version of the Power Query code?

Anonymous
Not applicable

This is what I am doing in my dataflow - it loses all the datatypes when it returns due to the bold text:
 
#"Grouped rows" = Table.Group(#"batch name", {"Item Code Original"}, {{"all", each _, type nullable table}, {"Original Batch Name"each List.Min([Batch Name]), type nullable text}}),
  #"Expanded all" = Table.ExpandTableColumn(#"Grouped rows", "all", {"ID SFC Item""Item Short Type", ........etc etc long list of fields............"Batch Name"}),
 
In my dataset, when I group and then expand all it adds the different bold code  {"all", each _, type table [ID SFC Item=text, .... long list of all my columns eachwith their format]}.   This keeps all the formats in the expanded table.
 
In both cases I am just using the group ribbon tools in the same way.  I wonder what I am doing differently because I do not particularly want to type in all the columns and their formats into the dataflow.  It is probably just a  box I am not ticking or something.
 
 
 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.