Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Need Help Fixing Measure - Summing a count

Hi All,    So i have the following measures:   Current Month - Selects the Cost Center for the Currently Selected Month   Current Month = var FileDate = SELECTEDVALUE(Dates[File Name]) return...
  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi  Anonymous ,

    I created some data:

    Here are the steps you can follow:

    1. If you want to calculate the total of [ExitCheck], you can create measure:

    all_sum = SUMX(ALL('Table'),'Table'[ExitCheck])

    2. If you want to calculate [ExitCheck] in groups, you can create measure:

    group_sum = SUMX(FILTER(ALL('Table'),[ExitCheck]=MAX('Table'[ExitCheck])),[ExitCheck])

    3. Result:

    If the result does not meet your expectations, can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

     

    Best Regards,

    Liu Yang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly