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
Ayupchap
Helper III
Helper III

Issue with groups

HI all hope somone can help I have a large dataset and I was trying to create groups for one of the columns. I could create them in the grouping page as lists fne but when I press OK it shows the working on it spinning wheel message and that never clears, not even after hours.  Is this an issue with the number of groups I was trying to create or maybe its somethign else?  Anyone have any tips on how I could create all the groups I need.  Shoudl I make a few at a time then press edit and then add more groups?  Any help much appreciated or a workaround also would be excellent.

 

 

 

1 ACCEPTED SOLUTION

Hi @Ayupchap,

 

That case, would you please make the sample data more clear and more readable? Would you please show me the sample table as what I have posted above?

 

If I understand corrently, value like "Grade 6 ELA #1 16 Book 1" is stored in a signle column, right? I think it won't matter. You can split it to multiple columns.

Column2 = LEFT(Table3[Column1],17)
Column3 = RIGHT(Table3[Column1],LEN(Table3[Column1])-LEN(Table3[Column2]))

1.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

9 REPLIES 9
RMDNA
Solution Sage
Solution Sage

When you say group, are you referring to the "Group By" option in the query editor, or the New Group option when selecting a field?

 

Also, how large is your dataset?

Hi there

 

New group option is what I meant, when you right click on a selcted field.  The dataset is about 250,000 records pulling from a ODBC linked database table.  

I've definitly seen Power BI hang when using the field group option with that many records.

 

Why not move to a custom column in Query Editor or a calculated column?

Is this possible when I have different names which I need to match together?  Some have 2 books some don't  the assessments I want to match would be like the following

 

Grade 6 ELA #1 16 Book 1

Grade 6 ELA # 1 16 Book 2

Grade 6 ELA #2 16 Book 1

Grade 6 ELA # 2 16 Book 2

Grade 6 ELA # 3 16

Obviously I want to combine those that say #1 together and #2 together. The final one in the example listed just has to be on its own, no book. There are many assessments like this above for numerous grades etc.  Can a custom column help with this?  I just have no idea how it would.

 

Is this possible when I have different names which I need to match together?  Some have 2 books some don't  the assessments I want to match would be like the following

 

Grade 6 ELA #1 16 Book 1

Grade 6 ELA # 1 16 Book 2

Grade 6 ELA #2 16 Book 1

Grade 6 ELA # 2 16 Book 2

Grade 6 ELA # 3 16

Obviously I want to combine those that say #1 together and #2 together. The final one in the example listed just has to be on its own, no book. There are many assessments like this above for numerous grades etc.  Can a custom column help with this?  I just have no idea how it would.

 

Hi @Ayupchap,

 

You can add a calculated column as a new group:

NewGroup = RIGHT('Table 1'[Column1],2)

1.PNG

 

Alternatively, you could create a summarized table to group original records:

table 1_1 =
SUMMARIZE (
    'Table 1',
    'Table 1'[Column1],
    "Column2", AVERAGE ( 'Table 1'[Column2] ),
    "Book", CONCATENATEX ( 'Table 1', 'Table 1'[Column3], "," )
)

3.PNG

 

Also, you can try this:

table 1_1 =
SUMMARIZE (
    'Table 1',
    'Table 1'[Column1],
    "Column2", AVERAGE ( 'Table 1'[Column2] ),
    "CountBook", COUNT ( 'Table 1'[Column3] )
)

2.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Oh wow thanks so much for this

 

Onyl issue is the assesment name and the book name is combined in one field unlike the way its displayed on your amazing example, do you think this will mater?

Hi @Ayupchap,

 

That case, would you please make the sample data more clear and more readable? Would you please show me the sample table as what I have posted above?

 

If I understand corrently, value like "Grade 6 ELA #1 16 Book 1" is stored in a signle column, right? I think it won't matter. You can split it to multiple columns.

Column2 = LEFT(Table3[Column1],17)
Column3 = RIGHT(Table3[Column1],LEN(Table3[Column1])-LEN(Table3[Column2]))

1.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Apologies for not making it clear, the example you use here is exactly how I have it, this is really amazing thanks so much!  This totally solves my problem

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.