Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Calculate sum issue : X projects = 0 charges

Good morning ! I work on 800 projects that are charged with FTE (full time equivalent) by managers and dispatched between 50 files (for the 50 managers). Some projects have 0 FTE as a total, while ...
  • AlB's avatar
    AlB
    5 years ago

    @Lotam

    Try this new version. Something complicated was going on. The result is now 4 for the mentioned case:

    N-projets non-chargés V4 =
    COUNTROWS (
        FILTER (
            CALCULATETABLE (
                DISTINCT ( 'Charges'[N_Projet] ),
                Charges[Itération_PdC] = "S2-2020"
            ),
            CALCULATE ( SUM ( Charges[Charges] ) = 0 )
        )
    )

    Please mark the resolved question when you are finished and consider giving a thumbs up if the posts are useful.

    Contact me privately for assistance with any large-scale BI needs, tutoring, etc.

    Bless you

    SU18_powerbi_badge

  • AlB's avatar
    AlB
    5 years ago

    @Lotam

    I'm sorry I couldn't answer sooner. Try this new measure that uses the one we already had:

    N-projets non-chargés V4_TOT =
    SUMX ( DISTINCT ( Charges[Groupe_Contributeur] ), [N-projets non-chargés V4] )

    Please mark the resolved question when you are finished and consider giving a thumbs up if the posts are useful.

    Contact me privately for assistance with any large-scale BI needs, tutoring, etc.

    Bless you

    SU18_powerbi_badge