Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hello Power BI Pals!
I have a DAX question - all I want to do is to subtract 1 from each of these USG% figures, so I can have a table like this:
Jan-20 0.39
Feb-20 0.42
Mar-20 0.52
etc
However, as you can see below, if I try to just subtract one, I get a minus 1 for all the other days in the month that don't have any data.
Can I force it to ignore all the other days in the month, and just do on the day which has data (which is always the first of the month, e.g. 01/01/2020
Thank so much!
Alex
Solved! Go to Solution.
Hi @Anonymous
USG% =
VAR res_ =
DIVIDE ( A, B ) //This will return blank when there is no data
RETURN
IF ( NOT ISBLANK ( res_ ), res_ - 1 )
A and B are the numerator and denominator that you have...
Please mark the question solved when done and consider giving kudos if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
Hi @Anonymous
USG% =
VAR res_ =
DIVIDE ( A, B ) //This will return blank when there is no data
RETURN
IF ( NOT ISBLANK ( res_ ), res_ - 1 )
A and B are the numerator and denominator that you have...
Please mark the question solved when done and consider giving kudos if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
That works great - thanks! 🙂
User | Count |
---|---|
141 | |
113 | |
104 | |
78 | |
64 |
User | Count |
---|---|
136 | |
125 | |
107 | |
70 | |
61 |