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
navedkhan
Helper III
Helper III

Cumulative Totaling with repeated rows (values and fields) and date slicer

Hi All - i've a very peculiar problem and this is troubling me a lot. I've done extensive research and googling but nothing helped.

 

MonthTeam NameErrors
Jan-20India34
Jan-20India40
Jan-20India40
Jan-20India0
Jan-20China14
Feb-20Chile81
Feb-20China34
Feb-20China14
Mar-20UK20
Mar-20UK0
Mar-20UK20

 

Now i wanted to have these things work for me in Powerbi;

 

1) Date Slicer when any date is selected table to correspond accordingly

2) Cumulative Totals to work fine with repeated "Team Names" and "Errors". i.e cumulative total to aggregate correctly

3) Dynamic Index to work specially Date filter is applied.

 

Expected output table to look like this;

Capture.PNG

 

Anyone please help as this will help me build a Pareto Analysis of errors???

 

@V-pazhen-msft @TomMartens @Ashish_Mathur 

 

1 ACCEPTED SOLUTION

Hi  @navedkhan ,

 


Does this issue have been resolved?Could you please provide more details about it If it still not be resolved? Please don't contain any Confidential Information or Real data in your reply.

 


Best regards,

Community Support Team _ Dong Li
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

6 REPLIES 6
v-gizhi-msft
Community Support
Community Support

Hi,

 

Please take following steps:

1)Add an index column to original table.

2)Try these measures:

rank =
RANKX (
    GROUPBY ( ALLSELECTED ( 'Table' ), 'Table'[Month], 'Table'[Team Name] ),
    CALCULATE ( SUM ( 'Table'[Errors] ) ),
    ,
    DESC,
    DENSE
)
Cumulative_Errors = 
CALCULATE (
    SUM ( 'Table'[Errors] ),
    FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Index] <= MAX ( 'Table'[Index] ) )
)

3)The result shows:

61.PNG

Here is my test pbix file:

pbix 

Hope this helps.

 

Best Regards,

Giotto

Ashish_Mathur
Super User
Super User

Hi,

Based on the data that you have shared, please share very clearly the expected result of

"Cumulative Totals to work fine with repeated "Team Names" and "Errors". i.e cumulative total to aggregate correctly"


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

@Ashish_Mathur 
it means that Columns if they have repeated values then it should add up;

Feb-20China34
Feb-20China34
Feb-20Chile15
Feb-20Chile15
Feb-20China0

 

expected table to look like this when Date filter is applied;

MonthTeamDynamic IndexCum_Errors
Feb-20China134
Feb-20China268
Feb-20Chile383
Feb-20Chile498
Feb-20China598

 

@v-gizhi-msft 

 

am getting this error when i applied two measures in Powerbi. May be one need to be a 'Column'??

 

IMG-5742.JPG

Hi  @navedkhan ,

 


Does this issue have been resolved?Could you please provide more details about it If it still not be resolved? Please don't contain any Confidential Information or Real data in your reply.

 


Best regards,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @navedkhan ,

 

Please try to create a [Index] Column in Power Query Editor firstly and use [Index] column in Measure "Cumulative_Errors".

 

1.jpg

 


By the way, PBIX file as attached.


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.