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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
felipeleite
Frequent Visitor

how to dilute period of dates into months

Preciso diluir o período de data em meses, por exemplo, data de início: 31/01/2022 data de término: 01/02/22, resultando assim janeiro = 1 dia; Fevereiro = 1 dia... Eu usei o DAX abaixo, ele funciona parcialmente, mas a soma está errada e eu não acho que o motivo ...

felipeleite_0-1671220765374.png

 

o gráfico abaixo funciona corretamente quando selecionado algum filtro, mas sem filtro não funciona...

felipeleite_1-1671220844638.png

Vou deixar os arquivos, quem puder me ajudar vai ficar muito grato!

 

2 REPLIES 2

hello Amit, thanks for the tips, are excellent, but i still could not solve my problem, I used your code as far as "dias por mes" the total sum is certain, but the distribution is not certain, I tried another code as far as "dias distribuidos" there is certain, but the sum is not, I will leave the link of my project, I would be immensely grateful if I could take a look, maybe you can help me, thank you very much!

 

felipeleite_0-1671461750715.png

https://drive.google.com/drive/folders/13OQkc3ETK5HdjZ1j5MPsWmM8gm8AFYYK?usp=sharing

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors