Skip to main content

I'm trying to add a filter to a table so I can do something similar to the search function for numeric dimensions (where I can select to filter greater than x). I haven't been able to code the filter.

 

I want to be able to filter by Total or/and Total Canceladas >= x

 

-NOM_SOLI: "CL_Auto_Autorizaciones"."NOM_SOLI"

 

-Total: COUNT_TABLE("CL_Auto_Autorizaciones")

 

-Total Canceladas:

COUNT(DISTINCT

CASE WHEN PROCESS EQUALS 'Cancelada' THEN "CL_Auto_Autorizaciones"."_CASE_KEY"

ELSE NULL

END)

 

-Porcentaje Canceladas:

COUNT(DISTINCT

CASE WHEN PROCESS EQUALS 'Cancelada' THEN "CL_Auto_Autorizaciones"."_CASE_KEY"

ELSE NULL

END)/ COUNT_TABLE("CL_Auto_Autorizaciones")

 

"CL_Auto_Autorizaciones" is the case table

image

If I add the pql of "total" to the table dimensions it breaks as soon as I apply the search of greater than x


Hmmm Miguel, not sure if you want to apply a FILTER to the component, or to add a column with True False depending on the condition, or if you want to use the search on the OLAP component column....

 

Which one?


Reply