Hello @scpradhan,
Consider using the SQUASH_WHITESPACE() function in the ETL process to address potential discrepancies like "Backpacks/Bags" vs "Backpacks/Bags " with space at the end.
Do you have anything in the sorting section in Analyzer? That will keep like items from being grouped together.
Hi @Manasi_Panov , I tried using SQUASH_WHITESPACE() function. It didn't help.
@MarkSnodgrass , there aren't any fields on the sorting section. I am not sure what is causing the field not to be grouped into one.
@scpradhan
The same issue is also visible for other categories:
Is there a Beast formula behind 'Store Visits'?
Yes, there are other categories. There is no beast mode formula used on the metrics. I checked on the other metrics like spend and clicks. And it's not grouping correctly by any other metrics.
If it is not the SQUASH_WHITESPACE() function on the 'Category' column, then could the issue be related to keyboard or language settings affecting categories names when they were created? In a test I conducted, replacing some Latin letters with Cyrillic letters resulted in unexpected grouping behavior.
Is there a way to fix this kind of issue?
Hi @scpradhan,
First, verify if this applies to your data. A quick test is to copy and paste both categories into MS Word or another tool to check for any replaced letters, as in my case.
The underlined word is the issue, as the letter "a" was replaced with the Cyrillic "a". You can then create a CASE statement (I'll bold the Cyrillic "a").
CASE WHEN 'Categories' = "Part" THEN "Part" ELSE 'Categories' END
Or you can just create the CASE statement randomly choosing one of the categories.
Another approach I've done is with Python, but it is way more complicated and I don't think it is worth the effort.
I found the solution for this as there were (Non-breaking Space, ASCII 160) and (Zero Width Space, Unicode U+200B) characters in the text. So, replacing those characters helped.
Solution:
REPLACE(REPLACE(Category, ' ', ''), '', '')
Category