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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Erika16
Helper II
Helper II

Cummulative measure

Hello commulative 

 

I need to create a cummulative measure for how long have clients been with us. Any ideas in how I can do these?

 

The second question I have is that our financial year does not match calendar year, so when I tried to do the Date Became Client' in bins it won't match our fianancial year. Any ideas? 

 

Thank you very much indeed! 

 

Erika16_0-1708444909738.png

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Erika16 ,

 

Please follow these steps:

1.Regarding the calculation of the time spent with the client, you can create measure and write the following dax expression:

Years of cooperation = YEAR(TODAY()) - MAX('Table'[Date_Became_Client])

Create the measure and calculate the cumulative value:

cummulate = 
SUMX(FILTER(ALL('Table'),'Table'[Date_Became_Client] >= MAX('Table'[Date_Became_Client])),'Table'[Years of cooperation])

2.Regarding the mismatch between the two dates, I created the Date_Became_Client group based on your screenshot and found that its data type is text, the reason for the mismatch between the fiscal year and the calendar year may be a data type problem, at this time it will show the error as shown in the figure below.

vkaiyuemsft_0-1708505829021.png

A text string representing a number can be converted to a number using VALUE. Similar to VALUE(MAX('Table'[Date_Became_Client (bins)])), you can refer to the documentation for more information about the value function: VALUE function (DAX) - DAX | Microsoft Learn.

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Erika16
Helper II
Helper II

Many thanks! 

Let me clarify on the second question in terms on the mismatch data. The problem is not that this is text, it was more a screen shot and an example. The issue I have is that our company  fiscal year does not equal calendar year. That was my question. Our fiscal year starts on September and we finish on August. That would be 

Erika16_0-1708595718015.png

So my question is how do I relate our fiscal year to date became client, if that make sense? 

 

Thank you very much indeed! 

 

 

 

 

 

 

Anonymous
Not applicable

Hi @Erika16 ,

 

Please follow these steps:

1.Regarding the calculation of the time spent with the client, you can create measure and write the following dax expression:

Years of cooperation = YEAR(TODAY()) - MAX('Table'[Date_Became_Client])

Create the measure and calculate the cumulative value:

cummulate = 
SUMX(FILTER(ALL('Table'),'Table'[Date_Became_Client] >= MAX('Table'[Date_Became_Client])),'Table'[Years of cooperation])

2.Regarding the mismatch between the two dates, I created the Date_Became_Client group based on your screenshot and found that its data type is text, the reason for the mismatch between the fiscal year and the calendar year may be a data type problem, at this time it will show the error as shown in the figure below.

vkaiyuemsft_0-1708505829021.png

A text string representing a number can be converted to a number using VALUE. Similar to VALUE(MAX('Table'[Date_Became_Client (bins)])), you can refer to the documentation for more information about the value function: VALUE function (DAX) - DAX | Microsoft Learn.

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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