Forum Discussion

admfabiomachado's avatar
6 years ago
Solved

DAX IF with date interval

Table 1 is a base of callcenter calls. this table shows only the extension, but not the station that answered the call. Table 2 shows the extension distribution over time. See, for example, extension...
  • camargos88's avatar
    camargos88
    6 years ago

    admfabiomachado ,

     

    Tenta criar essa coluna:

     

    id_posto = CALCULATE(DISTINCT(ramais[id_posto]);
    FILTER(
    ramais;
    ramais[data_inicio] <= DATEVALUE(ligacoes[data]) &&
    IF(ISBLANK(ramais[data_fim]); DATEVALUE(ligacoes[data]); ramais[data_fim]) >= DATEVALUE(ligacoes[data])
    )
    )