Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ronaldbalza2023
Continued Contributor
Continued Contributor

DAX measure to exclude positive values from existing measure

I'm trying to create a DAX measure that excludes positive values from an existing measure named "Write Off". This measure calculates the difference between invoiced amount and invoiced amount billable. Thanks in advance.

 

Here's the existing measure definition:

Write Off = Invoiced Amount Time - Invoiced Amount Billable

Note that these table are already the results from the measure and I wanted to exclude the positive values and retain the negative values.

Write OffTask Name
-150013746 | Phase 03 - Post-Lodgement Management
-102013917.2 | Phase 01 - Pre-lodgement Advice & Coordination (Balance Land Subdivision + Townhouses)
-84013917.4 | Phase 03 - Post-Lodgement Management
-78013917.1 | Phase 01 - Post Lodgement Management (2 Lot Subdivision)
-48014190 | Phase 01 - Pre-Lodgement Advice
-42013917.3 | Phase 01 - Pre-Lodgement Advice & Coordination (Medical Centre)
-390.3913925 | Part D - Out of Scope
-337.5614305 | Phase 02 - Planning Application
-24013769 | Phase 03 - Post-Lodgement Management
-12013917.2 | Phase 02 - Planning Application (Balance Land Subdivision + Townhouses)
-22.7913299 | Phase 03 - Management of Planning Application Process
0.3414182 | Part A - Urban Planning Project Co-Ordination
58.813984 | Phase 03 - Post Lodgement Coordination
201.4913937 | Phase 03 - Manage Planning Application
215.6614305 | Phase 01 - Preliminary
311.2514016 | Consulting
893.9814287 | Part A - Planning Report

 

1 ACCEPTED SOLUTION
amustafa
Solution Sage
Solution Sage

Try this...

 

Write Off = 
IF(
    [Invoiced Amount Time] - [Invoiced Amount Billable] < 0, 
    [Invoiced Amount Time] - [Invoiced Amount Billable],
    BLANK()  -- or 0, if you prefer to show zeros instead of blanks
)




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
amustafa
Solution Sage
Solution Sage

Try this...

 

Write Off = 
IF(
    [Invoiced Amount Time] - [Invoiced Amount Billable] < 0, 
    [Invoiced Amount Time] - [Invoiced Amount Billable],
    BLANK()  -- or 0, if you prefer to show zeros instead of blanks
)




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thanks very much for taking the time on this legend @amustafa.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors