Forum Discussion
LuZeta_39
4 years agoFrequent Visitor
Running total up to max Value
Greetings, I have a weekly report so I created a Date Hierarchy with weeks. This filters all my visuals BUT I need to report the running total up to my week max date (I already created the measu...
PaulDBrown
Community Champion
4 years agoTry:
PROGRESS MAXDATE =
IF(MAX('701-AUX FECHA'[FECHA]) < =[THISWEEKMAX],
CALCULATE(
SUM('110-Actual SCH'[% Labor]),
FILTER(
ALLSELECTED('701-AUX FECHA'),
'701-AUX FECHA'[Fecha] <= MAX('701-AUX FECHA'[Fecha])
)
))
- LuZeta_394 years agoFrequent Visitor
Thanks Paul! This still filters by the MINWEEKDAY thus the cummulative visual shows the period value. I think I'll give up and filter that visual by another slicer.
- PaulDBrown4 years ago
Community Champion
Can you post a depiction of the expected output? I'm no too sure what you are after and what the issue is
- LuZeta_394 years agoFrequent Visitor
The bottom slicer is WEEK Number.
Based on that date the visual "Period Plan" calculates the progress (it's a calculated column):
% Labor = DIVIDE('100-BaseLine'[Period],CALCULATE(SUM('100-BaseLine'[Period]),FILTER('100-BaseLine','100-BaseLine'[Material/Labor]="Labor")))Its okThe problem is in Cumm Plan. I want to show the total progress up to the max week date (measure):SCHPLANxMAXWEEKDAY =IF(MAX('701-AUX FECHA'[FECHA]) <=[THISWEEKMAX],CALCULATE(SUM('100-BaseLine'[% Labor]),FILTER(ALLSELECTED('701-AUX FECHA'),'701-AUX FECHA'[Fecha] <= MAX('701-AUX FECHA'[Fecha]))))While THISWEEKMAX is a measure calculated this way:THISWEEKMAX = CALCULATE(MAX('701-AUX FECHA'[Fecha]),FILTER('701-AUX FECHA','701-AUX FECHA'[WEEK]=[THISWEEKNUM]))I think the problem is that THISWEEKMAX is a measure and not a single number.All tables have relationships so I don't this there is any issue.I think I stumbled into myself and maybe its simpler just to add a slicer thats defines the Cumm date.Thank you for your help.