Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Comparing values of two measures

Hi Community, 

 

I am looking to do a simple compare of two measures to show Sales target progress against the elapsed time in a month and return a 1 if target is higher and a 0 if lower than target.  I am then hoping I can use conditional formatting and use the numbers to return icons to illustrate whether we are on track or not to potentially meet our targets.

 

So for example 

 % Target Complete% Elapsed Time of monthComparison
Brand A55%50%1
Brand B45%50%0
 

I know this should be quite simple but so far have been unable to get this to work.   Any further ideas appreciated, 

 

thanks

 

MT

 

 

 

 

 

  • Comparison = IF([% Elapsed Time of month] > [% Target Complete], 1, 0)
     
    Please give Kudos for support.
    If I answered your question, please mark my post as solution, this will also help others.

2 Replies

  • mwegener's avatar
    mwegener
    Most Valuable Professional
    Comparison = IF([% Elapsed Time of month] > [% Target Complete], 1, 0)
     
    Please give Kudos for support.
    If I answered your question, please mark my post as solution, this will also help others.
  • kentyler's avatar
    kentyler
    Solution Sage

    If % complete and % elapsed are measure you should be able to write another measure that uses those 2

    flag = VAR difference = [% complete] - [% elapsed]
    RETURN IF(difference > 0, 1,0)