Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have a matrix in which I have 2 measures and now I want to create a 3rd measure which gives me [measure1 - measure 2] only when measure 2 is not blank. If measure 2 is blank then measure 3 should also be blank.
Outcome
| Department | employee | Measure 1 | Measure 2 | Measure 3 |
| IT | John | 10 | ||
| IT | Ilse | 20 | 50 | -30 |
| Finance | Jack | 24 | 10 | 14 |
| Finance | Josie | 34 | 30 | 4 |
| Finance | Jebaca | 65 | ||
| HR | Jay | 65 | 50 | 15 |
| HR | Jones | 50 |
I have tried the measure below but is does not work unfortunatly.
I hope you can help me
Solved! Go to Solution.
Hi @Anonymous
Measure 3 =
VAR BB = [Measure 1]
VAR VC = [measure 2]
RETURN
IF (
NOT ISBLANK ( VC ),
BB - VC,BLANK()
)
|
|
Please accept the solution when done and consider giving a thumbs up if posts are helpful. Contact me privately for support with any larger-scale BI needs, tutoring, etc. |
Hi @Anonymous
Measure 3 =
VAR BB = [Measure 1]
VAR VC = [measure 2]
RETURN
IF (
NOT ISBLANK ( VC ),
BB - VC,BLANK()
)
|
|
Please accept the solution when done and consider giving a thumbs up if posts are helpful. Contact me privately for support with any larger-scale BI needs, tutoring, etc. |
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 11 | |
| 8 | |
| 8 | |
| 8 |