QuickSight : How to display the totals of the category without splitting it by sub totals and not duplicating the rows on the visual

Issue

This Content is from Stack Overflow. Question asked by Dolliy

I have a table that looks like below

IDDTMain Category
119-08-2022A
220-08-2022B
320-08-2022A
419-08-2022B
520-08-2022A
620-08-2022B
719-08-2022A
820-08-2022A
920-08-2022A
1020-08-2022A

I want the output to be like below

Main CategoryDTCount of ID
A19-08-20226
A20-08-20226
B19-08-20223
B20-08-20223

I don’t want the count of IDs to be split by the column DT. I have tried using the below functions

countOver({ID},[{Main Category}])

The code requires me to add the column ID on table and also results in duplicates on visuals.
Can someone suggest how can I solve this?



Solution

This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?