Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I have budget, actuals, and remaining columns for revenue. When Actuals exceeds the budget that means it has exceed over 100%. However, the figures still return positive. I want to highlight those figures negatively so that the user knows that they are in the black compared to the rest of the revenue types.
I am trying to write an If statement that says is % spent > 100%, SIGN(Sign([Rev Remaining)
I feel like I am close :
Over Rev = IF ( [% spent] > "100%", Sign([Rev Remaining]))
Solved! Go to Solution.
I think Sign was the wrong DAX formula.
I went with this and got my desired result:
Over Rev = IF ( ([% spent] > 1), -[Abs Rev Remaining], [Abs Rev Remaining])
I guess you can just add a "-" in front of a measure to have the output come out negative.
If [% spent] is a column or measure that is a decimal type, you don't want to compare against a string ("100%"). 100% is the same as saying 1
Over Rev = IF ( [% spent] > 1, Sign([Rev Remaining]))
Hope this helps
David
I think Sign was the wrong DAX formula.
I went with this and got my desired result:
Over Rev = IF ( ([% spent] > 1), -[Abs Rev Remaining], [Abs Rev Remaining])
I guess you can just add a "-" in front of a measure to have the output come out negative.
User | Count |
---|---|
84 | |
78 | |
70 | |
46 | |
42 |
User | Count |
---|---|
106 | |
50 | |
49 | |
40 | |
40 |