Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
fsouza_ata
Frequent 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/UH936TQfunciona como o esperado, já na imagem 2 (https://imgur.com/Ou4K7lL), ao colocar um período maior, os dados não batem.

Qualquer ajuda é bem vinda, desde de já agradeço.

 
2 REPLIES 2
v-cherch-msft
Microsoft Employee
Microsoft 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.

1.png

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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]))

 

 

imagem1.png

 

 

in this period works. 

imagem2.png

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors