Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 219159

Applying filters to running total?

$
0
0

Hi,

 

I'm trying to create a chart that shows the progressive work completed on a project; So at week 1 0% (0hours) have been completed; by week 50 (end of project), it should show 100% (1000hours) complete.  I've added a column to my table to calculate the running total on hours completed per week.

 

CumulativeHours = CALCULATE ( SUM (WORK[TotalHours]), ALL(WORK), WORK[Week] <= Earlier(WORK[week]))

 

My tables look like this

 

ACTIVITIES (list of all activities)

Week

ActivityName

TypeOfWork

WorkArea

ActivityHours

 

WORK (distinct list of weeks and total hours per week, from the ACTIVITIES table)

Week

TotalHours

CumulativeHours

 

Tables are joined on the 'Week' Column (relationship is 1 (WORK) : M (ACTIVITIES)).

 

I want to add slicers to the report for TypeOfWork and WorkArea.  I have 2 issues:  1. The slicers do not seem to affect the chart when I apply them.  2. Even if the slicers worked, I'm not conviced the cumulativeHours would re-calculate based on the applied filters...?

 

Has anyone come across the same problem and have a solution?


Viewing all articles
Browse latest Browse all 219159

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>