Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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! 🙂
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |