Forum Discussion
Anonymous
6 years agoNot applicable
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 month | Comparison | |
| Brand A | 55% | 50% | 1 |
| Brand B | 45% | 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
- mwegenerMost Valuable ProfessionalComparison = 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.
- kentylerSolution 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)