Forum Discussion

LuZeta_39's avatar
LuZeta_39
Frequent Visitor
4 years ago

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

  • PaulDBrown's avatar
    PaulDBrown
    Icon for Community Champion rankCommunity 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])
        )
    ))
    • LuZeta_39's avatar
      LuZeta_39
      Frequent 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.

      • PaulDBrown's avatar
        PaulDBrown
        Icon for Community Champion rankCommunity Champion

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

  • PaulDBrown's avatar
    PaulDBrown
    Icon for Community Champion rankCommunity 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)?

    • LuZeta_39's avatar
      LuZeta_39
      Frequent Visitor

      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.