Help with Calculate Function in PowerPivot

Answered Help with Calculate Function in PowerPivot

  • Thursday, August 16, 2012 8:01 PM
     
     

    I have a power pivot table to report of the number of machines that received the latest MS patch.

    The Row lables are "compliant", "enforcement state unknown" and "failed to install updates"

    Each of these rows shows a total with a grand total at the bottom summing them all.

    How do I use the calulate function to create a new measure that will show the number of machines that are compliant?

All Replies

  • Monday, August 27, 2012 7:03 PM
     
     Answered Has Code

    One way of doing this is to create a new calculated column (on the PowerPivot window) and then a conditional if statement to count as "1" when the machine is compliant.

    Something like:

    =IF([status] = "compliant", 1 )

    You can then click on that new column and the pivot table will perform the default SUM aggregate




    Javier Guillen
    http://javierguillen.wordpress.com/

    • Marked As Answer by blumm1 Thursday, October 11, 2012 2:26 PM
    •