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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
LuZeta_39
Frequent 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 measure [THISWEEKMAX]).

 

I tried to get this through this measure:

PROGRESS MAXDATE =
CALCULATE(
    SUM('110-Actual SCH'[% Labor]),
    FILTER(
        ALLSELECTED('701-AUX FECHA'),
        ISONORAFTER('701-AUX FECHA'[Fecha], [THISWEEKMAX], DESC)
    )
)
 
With no results.
Any help?
Thank you all.
6 REPLIES 6
PaulDBrown
Community Champion
Community Champion

It's hard to follow without seeing the data. Any chance you coulp share some sample data (non-confidential which you can recreate in Excel for example)?





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






I really appreciate your help. I could but it'd take an hour or two; this pbix has a lot of tables.

I will proceed with the slicer.

 

Thanks for your help;

I felt very well welcomed in my first post.

PaulDBrown
Community Champion
Community Champion

Try:

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])
    )
))




Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






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.

Can you post a depiction of the expected output? I'm no too sure what you are after and what the issue is





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






 

LuZeta_39_1-1636209160851.png

 

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 ok
 
The 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.
 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors