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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
giuliapiazza94
Helper IV
Helper IV

Cumulative measure / 100

Hi guys,

i need to create a measure that works like this:

 

giuliapiazza94_0-1722582924279.png

 

giuliapiazza94_3-1722582990544.png

 

giuliapiazza94_1-1722582939056.png

 

giuliapiazza94_2-1722582961198.png

 

How can I create it?

 

Thank you all 🙂

1 ACCEPTED SOLUTION
v-xianjtan-msft
Community Support
Community Support

@bhanu_gautam , Thank you for your positive response to the post.

 

Hi @giuliapiazza94 

 

Here is my solution, I hope this helps.

1.Create a measure to calculate Y/100.

FirstMonthYDiv100 = CALCULATE(
    MIN('Table'[Y]), 
    FILTER(
        ALL('Table'), 
        'Table'[Month] = MINX(ALL('Table'), 'Table'[Month]
        )
    )
)/100

 

2.Create a cumulative measure for column X.

CumulativeSumX = CALCULATE(
    SUM('Table'[X]),
    FILTER(
        ALLSELECTED('Table'),
        'Table'[Month] <= MAX('Table'[Month])
    )
)

 

3.Create a measure Z.

Z = [FirstMonthYDiv100] + [CumulativeSumX]

 

4.Here is my final result.

1.png

Best Regards,
Jarvis Tang
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

4 REPLIES 4
v-xianjtan-msft
Community Support
Community Support

@bhanu_gautam , Thank you for your positive response to the post.

 

Hi @giuliapiazza94 

 

Here is my solution, I hope this helps.

1.Create a measure to calculate Y/100.

FirstMonthYDiv100 = CALCULATE(
    MIN('Table'[Y]), 
    FILTER(
        ALL('Table'), 
        'Table'[Month] = MINX(ALL('Table'), 'Table'[Month]
        )
    )
)/100

 

2.Create a cumulative measure for column X.

CumulativeSumX = CALCULATE(
    SUM('Table'[X]),
    FILTER(
        ALLSELECTED('Table'),
        'Table'[Month] <= MAX('Table'[Month])
    )
)

 

3.Create a measure Z.

Z = [FirstMonthYDiv100] + [CumulativeSumX]

 

4.Here is my final result.

1.png

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

bhanu_gautam
Super User
Super User

@giuliapiazza94 , Can you explain what exactly you are trying to do




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






I need to create Z but I don't know how

X and Y are two measures.

X = total of new customers of month

Y = total customers

 

I need to create Z: 

Z of first month selected (in this example is january) = Y / 100

Z of other months =  Z(previous month) + X

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.