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
Anonymous
Not applicable

Created Group Help

Hi,

 

I am tring to create a grouping and no matted what I try it doesn't appear to be working properly. I keep getting an error that says "Field list item has an error". The steps I took are shown below. 

 

Glange63_0-1636559262780.png

 

 

Glange63_1-1636559313657.png

 

Glange63_2-1636559369911.png

 

 

 

 

 

 

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @Anonymous 

 

I can reproduce it. It is because Sourceid column is of Text data type. If you change it to Whole number type, you will not see this error. 

 

The group/bin feature is also written by DAX. If I put this error field into a visual, it will display below details. 

21111601.jpg

 

If you want to keep Sourceid column of Text data type, you can create a group column with below code. 

Sourceid Group = 
SWITCH (
    TRUE (),
    'Table'[Sourceid] IN { "185", "186" }, "Order Create",
    'Table'[Sourceid] IN { "211", "212" }, "PTTU",
    'Table'[Sourceid] IN { "214" }, "Customer Care",
    "Other"
)

21111602.jpg

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @Anonymous 

 

I can reproduce it. It is because Sourceid column is of Text data type. If you change it to Whole number type, you will not see this error. 

 

The group/bin feature is also written by DAX. If I put this error field into a visual, it will display below details. 

21111601.jpg

 

If you want to keep Sourceid column of Text data type, you can create a group column with below code. 

Sourceid Group = 
SWITCH (
    TRUE (),
    'Table'[Sourceid] IN { "185", "186" }, "Order Create",
    'Table'[Sourceid] IN { "211", "212" }, "PTTU",
    'Table'[Sourceid] IN { "214" }, "Customer Care",
    "Other"
)

21111602.jpg

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

lbendlin
Super User
Super User

any fancy hidden or special (Unicode) characters in your data?  Maybe you can provide a sample?

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.