Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Getting percent on row while counting some columns

I have a situation where I have a table with individual feedback scores and want to produce a matrix showing rating groups and their percentage of the  year's total feedback but I don't want to add c...
  • littlemojopuppy's avatar
    littlemojopuppy
    4 years ago

    Hi Anonymous 

     

    I got this!

    Percentage Measure = 
    VAR Numerator =
        CALCULATE(
            [FeedbackCount],
            'Customer Feedback'[feedback score] <> 0
        )
    VAR Denominator =
        CALCULATE(
            [FeedbackCount],
            CALCULATETABLE(
                'Customer Feedback',
                'Customer Feedback'[feedback score] <> 0,
                REMOVEFILTERS('Customer Feedback'[feedback score (groups)])
            )
        )
    RETURN
    
    DIVIDE(
        Numerator,
        Denominator,
        BLANK()
    )

     

     

  • littlemojopuppy's avatar
    littlemojopuppy
    4 years ago

    Anonymous try another measure...should be something like this (maybe???)

    CALCULATE(
    	[The Measure I Gave You Earlier],
    	[Group/bin] = "6-7"
    )