IBM Apptio

IBM Apptio

A place for Apptio product users to learn, connect, share and grow together.

 View Only
Expand all | Collapse all

Change color of number format with condition

  • 1.  Change color of number format with condition

    Posted Wed November 14, 2018 11:57 AM

    I got a request to calculate portion of budget already consumed by project and somehow highlight the spend when budget is 100% consumed. This is pretty easy in excel with conditional formatting but I couldn't find anything like that here in community. I have been looking around and found plenty of good advice around NumberFormat function turning numbers red if negative, but I am working with percentage (%). I am also aware of highlighting under "Ribbon>Data>Columns>Highlight" but that was quite out of place "design-wise". I realized it's worth sharing & hopefully saving couple of minutes for someone new on community.

     

    Here is the formula I used: =IF({$_}>1,NumberFormat({$_},"#,###%",posColor="#FF0000"),NumberFormat({$_},"#,###%"))

     

    Edit Column:

    Edit Column

    Result:

    % spent turned red if over 100%

     

        











    #CostingStandard(CT-Foundation)


  • 2.  Re: Change color of number format with condition

    Posted Wed November 21, 2018 08:49 AM

    Nice!

    Thanks @Daniel Svoc�k for sharing.


    #CostingStandard(CT-Foundation)


  • 3.  Re: Change color of number format with condition

    Posted Mon November 26, 2018 05:07 AM

    @Lars Peterson thanks, happy to share.


    #CostingStandard(CT-Foundation)


  • 4.  Re: Change color of number format with condition

    Posted Mon December 03, 2018 11:52 AM

    Thank you very much for sharing! It' s very useful.


    #CostingStandard(CT-Foundation)


  • 5.  Re: Change color of number format with condition

    Posted Tue December 04, 2018 03:35 AM

    Thanks @Daniel Svoc�k for sharing, text color based on condition is very important feature and widely used in all different types of reporting tools.. happy to see the same quick formula which will surely help.. 


    #CostingStandard(CT-Foundation)