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
jay_patel
Helper IV
Helper IV

Want cumulative

Hello All

 

I want a cumulative for SBU, tried a lot but not getting the result. Attaching Dax and result's too.

As you can see I want cumulative of measure "CalculatedbySBU" and the dax for both measure i.e. cumulative & CalculatedbySBU is as mentioned below.

 

 

1)
cumulative =
CALCULATE (
[CalculatedBySBU-date],
FILTER (SDirectSales,SDirectSales[SBU.SBU] >= MAX( SDirectSales[SBU.SBU] )
 
)
)
 
2)
CalculatedBySBU-date = CALCULATE(CALCULATE([Primary Sales1]),FILTER (
ALLSELECTED( 'SDirectSales' ),
SDirectSales[Month-Year] = MAX( SDirectSales[Month-Year] )
&& SDirectSales[SBU.SBU] = MAX( SDirectSales[SBU.SBU] )))

 

Screenshot (30).png

2 ACCEPTED SOLUTIONS
Jihwan_Kim
Super User
Super User

Hi, @jay_patel 

Please try the below measure.

 

cumulative =
VAR current = [CalculatedBySBU-date]
RETURN
CALCULATE (
[CalculatedBySBU-date],
FILTER ( ALL ( SDirectSales[SBU.SBU] ), [CalculatedBySBU-date] >= current )
)
 

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


View solution in original post

ryan_mayu
Super User
Super User

@jay_patel 

maybe you can try this

cumulative =
CALCULATE (
[CalculatedBySBU-date],
FILTER (SDirectSales,SDirectSales[SBU.SBU] <= MAX( SDirectSales[SBU.SBU] )

 

i'm sry that I don't quite understand the logic of your second measure.





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

Proud to be a Super User!




View solution in original post

6 REPLIES 6
v-eqin-msft
Community Support
Community Support

Hi @jay_patel ,

 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it.😀

 

Best Regards,
Eyelyn Qin

HarishKM
Impactful Individual
Impactful Individual

@jay_patel  Hey MAte Try this .

 

Sale running total in Sales Person =
CALCULATE(
    SUM('Sheet1'[Sale]),
    FILTER(
        ALLSELECTED('Sheet1'[Sales Person]),
        ISONORAFTER('Sheet1'[Sales Person], MIN('Sheet1'[Sales Person]), DESC)
    )
)
HarishKM_0-1617869901509.png

Kudos will be great.

v-eqin-msft
Community Support
Community Support

Hi @jay_patel ,

 

According to my understanding, you want to calculate the grant total for [CalculatedBySBU-date] measure,right?

You could use SUMX() like this:

cumulative = SUMX('SDirectSales',[CalculatedBySBU-date])

4.8.3.cumulative.PNG

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

ryan_mayu
Super User
Super User

@jay_patel 

maybe you can try this

cumulative =
CALCULATE (
[CalculatedBySBU-date],
FILTER (SDirectSales,SDirectSales[SBU.SBU] <= MAX( SDirectSales[SBU.SBU] )

 

i'm sry that I don't quite understand the logic of your second measure.





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

Proud to be a Super User!




Jihwan_Kim
Super User
Super User

Hi, @jay_patel 

Please try the below measure.

 

cumulative =
VAR current = [CalculatedBySBU-date]
RETURN
CALCULATE (
[CalculatedBySBU-date],
FILTER ( ALL ( SDirectSales[SBU.SBU] ), [CalculatedBySBU-date] >= current )
)
 

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


 

Still not getting cumulative for the same.

 

Screenshot (32).png

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.