Forum Discussion
Anonymous
3 years agoNot applicable
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")
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!
- Anonymous3 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
- Greg_DecklerCommunity Champion
Anonymous You would do SUMMARIZE(FILTER('SalesOp', ....), ...)
- AnonymousNot 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.
- AnonymousNot applicablebut 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
- AnonymousNot 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