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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
bcobrien1977
Helper IV
Helper IV

Cumualitve Total Per Team and Priority

Hi,

 I am trying to create a simple table that shows a running total and running percent total  per priority and team that will look something like this.

RunningTotal =
CALCULATE (
    SUM ( 'ITERATION DATA'[Total Capacity] ),
    ALLEXCEPT ( 'ITERATION DATA', 'ITERATION DATA'[TeamCodeName] ),
  'ITERATION DATA'[Index] <= ('ITERATION DATA'[Index])
)

bcobrien1977_0-1702309322205.png

 

When I use this measure, it will not display the previous total if things have not changed.  How do I get this so it will always show the previous total if there is not a new incremental amount?  Thanks

 

bcobrien1977_1-1702309636006.png

 

2 ACCEPTED SOLUTIONS
Greg_Deckler
Super User
Super User

@bcobrien1977 It's all one table so CALCULATE won't work. Use a No CALCULATE approach instead.

 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

Hi,

I had a bunch of things leap frog this and I am coming back to this and this still doesn't work.  If I understand correctly, you should be able to use something other than a date and this will still work.  

I am using this as a measure.

TEST Total =

VAR _MAX_PRIOR=max('Priority Intiative'[Priority - Copy])

VAR _TABLE=FILTER(ALLSELECTED(' CAPACITY'),' CAPACITY'[Priority - NUMBER]<= _MAX_PRIOR)

RETURN  

SUMX(' CAPACITY',[MAX STORY POINT ESTIMATE ALLOCATED]

)

 

bcobrien1977_1-1708524093536.png
bcobrien1977_2-1708524214484.png

When I use this formula, it still does not create a cumulative total.  In the first column, I would expect 394 to carry down untill adds the 68 and then that 458 would carry down to the bottom.  Can you please take a look? Thanks


 

 

View solution in original post

2 REPLIES 2
Greg_Deckler
Super User
Super User

@bcobrien1977 It's all one table so CALCULATE won't work. Use a No CALCULATE approach instead.

 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hi,

I had a bunch of things leap frog this and I am coming back to this and this still doesn't work.  If I understand correctly, you should be able to use something other than a date and this will still work.  

I am using this as a measure.

TEST Total =

VAR _MAX_PRIOR=max('Priority Intiative'[Priority - Copy])

VAR _TABLE=FILTER(ALLSELECTED(' CAPACITY'),' CAPACITY'[Priority - NUMBER]<= _MAX_PRIOR)

RETURN  

SUMX(' CAPACITY',[MAX STORY POINT ESTIMATE ALLOCATED]

)

 

bcobrien1977_1-1708524093536.png
bcobrien1977_2-1708524214484.png

When I use this formula, it still does not create a cumulative total.  In the first column, I would expect 394 to carry down untill adds the 68 and then that 458 would carry down to the bottom.  Can you please take a look? Thanks


 

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.