Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

How to exclude values in summarize dax table

Hi everyone.

I need to create a summarized table from another table in the same model.

I'm trying to create it using Dax. I've created it with the following expression:

VisitasSS =
var visitas = filter(SUMMARIZE(SalesOp,SalesOP[ID ODV],SalesOp[ESTADO ODV],"Fecha Visita",max(SalesOp[FECHA DE VISITA]),"Matricula",MAX(SalesOp[MATRICULA DEL COMERCIAL ASIGNADO])),SalesOp[estado oDV]="Visit_confirmed")
return visitas

 

 
but i need to exclude some values from the origin table (SalesOp, Salesop[Centro Costo] = 502,503,901) (this values)
The problem is that the original table has values like 502,503 901 from the original table. (SalesOp, Salesop[Centro Costo] = 502,503,901) (this values). I don't want to include this values.
how can i do that?
 
Thanks!
 
 
 
  • Anonymous's avatar
    Anonymous
    3 years ago

    HI Anonymous,

    You can set a filter on query table side to filter specific records, and these filtered records will be removed before data transform to data model tables.

    Regards,

    Xiaoxin Sheng

4 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      but i need to exclude some values from the original table (SalesOp, Salesop[Centro Costo] = 502,503,901)
      how can i do that? i would really appreciate if you could help me.

  • Anonymous's avatar
    Anonymous
    Not applicable
    but i need to exclude some values from the origin table (SalesOp, Salesop[Centro Costo] = 502,503,901) (this values)
    The problem is that the original table has values like 502,503 901 from the original table. (SalesOp, Salesop[Centro Costo] = 502,503,901) (this values). I don't want to include this values.
    how can i do that? i would really appreciate if you could help me
    • Anonymous's avatar
      Anonymous
      Not applicable

      HI Anonymous,

      You can set a filter on query table side to filter specific records, and these filtered records will be removed before data transform to data model tables.

      Regards,

      Xiaoxin Sheng