Buenas noches, requiero sacar el porcentaje respecto al total de una columna que contiene Strings, pero no me ha servido las formulas, intente de esta forma pero todos los porcentajes me dan igual, me podrían ayudar, distinct_count(categoria)/min(CountOver(categoria,,PRE_FILTER), de igual forma tengo la duda de como pasar un tiempo por ejemplo 1476 a formato de hhmmss, muchas gracias.
Hello @Santi98 , welcome to the Quicksight community!
For you calculated field, what is the error that you received and is there a reason that you are using the min() function to get the percentage?
Also, are you wanting a filter action to reduce the number of categories shown in the first part of your calculated field compared to the second?
I would recommend the following calculated field:
distinct_count({category})/distinct_count({category}, [], Pre-filter)
Hola Santi
Aqui teneis un dashboard como ejemplo para la formula que buscas. En cuanto la hora, todo depende del formato que venga la hora y lo que quieras hacer con ella. En este caso lo converti en un texto.
“Hello Duncan, thank you very much for the responses. I tried the line you shared with me, but I encountered the following error: ‘The function {{functionName}} must have {{correctNumber}} argument(s) instead of {{incorrectNumber}} argument(s).’”
Hello @Santi98 !
Can you try distinctcountOver for the second part of the calculated field instead?
distinct_count({category})/distinctCountOver({category}, [], Pre-filter)
Falta una función de agrupación. Las agregaciones personalizadas no pueden contener simultáneamente campos de agregación “distinctCountOver
” y de no agregación “DISTINCTCOUNTOVER(“categoria”, PRE_FILTER)” en cualquier combinación.
Continua el error
Hello @Santi98 !
Did you receive the same error when you tried @Ramon_Lopez 's solution above?: