Forum Discussion
fsouza_ata
7 years agoFrequent Visitor
help with calculated column
Boa noite Pessoal, alguém pode me ajudar com esta formula DAX, estou usando em uma coluna calculada, mas estou com dificuldade para usar um filtro com período. Na imagem 1 (https://imgur.com/UH936T...
v-cherch-msft
7 years agoMicrosoft Employee
Hi fsouza_ata
I would suggest you create a measure instead of calculated column to get the dynamic count.Please try below measure in picture.If it is not your case,please follow the How to Get Your Question Answered Quickly to post your simple assumed data and expected output.It would be better if you can upload the .pbix file to OneDrive and post the link here. Do mask sensitive data before uploading.
Regards,
fsouza_ata
7 years agoFrequent Visitor
Hi v-cherch-msft , That still has not worked the way I need it.
These are the images for ease of understanding, I need to tell the column "id_apontamento" within the period.
Image 1 is the problem. this is my DAX now:
Coluna = CALCULATE(COUNT(fDados_Servico[ID_APONTAMENTO]);
DATESBETWEEN(fDados_Servico[DATA];FIRSTDATE(dCalendario[DATA]);LASTDATE(dCalendario[DATA]));
ALLEXCEPT(fDados_Servico;fDados_Servico[ID_APONTAMENTO]))
in this period works.