Forum Discussion

neonguyen's avatar
neonguyen
Frequent Visitor
7 years ago
Solved

Sum with group

I have a table as bellow:   And i want to Sum 'Amount' group by: 'Created by' & 'Program'. Then divide them for 10,000,000, and round 0.5 -> 1 to calculate Enrollment. And finally, i will cal...
  • Anonymous's avatar
    Anonymous
    7 years ago

    Hi neonguyen ,

    You can try to use following measure formula if it suitable for your requirement:

    Grouped Total =
    ROUND (
        DIVIDE (
            CALCULATE (
                SUM ( Table[Amount] ),
                ALLSELECTED ( Table ),
                VALUES ( Table[abc] ),
                VALUES ( Table[Program] )
            ),
            10000000
        ),
        0
    ) * 50000
    

    Regards,

    Xiaoxin Sheng