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
Anonymous
Not applicable

Cummulated calculation NOT summing correctly

Hi, i have a bar/line graph.

On the X axis i have displayed the number of months which have passed from a date given. It comes from a DATEDIFF measure and then it´s converted into months, which is achieved simply by a chain of IFs which display "1month", "2months"...etc depending on the number of days passed. Then at each "months passed", a total sum of amount from a column it´s showed (that column shows debt of each customer)

 

So, finally i do a cummulated sum of that amount from that column and display it in form of a line. The problem is that is completely ilogical. The picture speaks for itself. The formula i used for the cummulated is: 

Acumulado Deuda =
VAR _fechaMax = MAX('1 Deuda Clientes sin carterizar'[F. Vencimiento])

RETURN
CALCULATE ([sumdeuda],
FILTER (
ALLSELECTED('1 Deuda Clientes sin carterizar'),
'1 Deuda Clientes sin carterizar'[F. Vencimiento] <= _fechaMax
))

 

Any suggestion?

Thanks in advance.

Cummulated.PNG

Captura.PNG

1 REPLY 1
MFelix
Super User
Super User

Hi @Anonymous ,

 

Is there any date related with the column of the +1 month and so on?

 

Believe that your issue is related with the fact that the calculation is not identifying the date correctly, to make sure you have the correct value of date try to place on the table visualization the  MAX('1 Deuda Clientes sin carterizar'[F. Vencimiento])  and check if the value is always the same or different, 

 

If you cannot find the reason, can you please share a mockup data or sample of your PBIX file. You can use a onedrive, google drive, we transfer or similar link to upload your files.

If the information is sensitive please share it trough private message.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



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.