Can I know why the data is not grouping into single column in the pivot table?
Answers
-
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.
If you found this post helpful, please use π‘/π/π/π below! If it solved your problem, don't forget to accept the answer.
1 -
Do you have anything in the sorting section in Analyzer? That will keep like items from being grouped together.
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.1 -
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.
0 -
The same issue is also visible for other categories:
Is there a Beast formula behind 'Store Visits'?
If you found this post helpful, please use π‘/π/π/π below! If it solved your problem, don't forget to accept the answer.
0 -
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.
0 -
Hello @scpradhan,
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.
If you found this post helpful, please use π‘/π/π/π below! If it solved your problem, don't forget to accept the answer.
0 -
Is there a way to fix this kind of issue?
0 -
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.
If you found this post helpful, please use π‘/π/π/π below! If it solved your problem, don't forget to accept the answer.
0 -
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.
- 'Β ' (Non-breaking Space, ASCII 160)
Non-breaking space ('Β ') is a type of space that looks visually like a regular space but has a different Unicode value (ASCII 160).
It is often used in HTML or other formats to prevent text from breaking across lines, which can cause issues in your data when it's not cleaned properly.
In this case, 'Β ' represents the non-breaking space character. - 'β' (Zero Width Space, Unicode U+200B)
Zero-width space ('β') is an invisible character that has no width. Itβs often used in data formatting or when dealing with text that needs to appear connected but actually contains invisible boundaries.
The Unicode character U+200B is represented as 'β' (a zero-width space).
Solution:
REPLACE(REPLACE(
Category
, 'Β ', ''), 'β', '')1 - 'Β ' (Non-breaking Space, ASCII 160)
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.8K Visualize
- 2.5K Charting
- 738 Beast Mode
- 56 App Studio
- 40 Variables
- 684 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 46 Workflows
- 10 DomoAI
- 35 Predict
- 14 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 123 Manage
- 120 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive