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

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.

Reply
bw70316
Helper V
Helper V

Absolute Value Except when % exceeds 100%

I have a budgets and actuals table with revenue items that are coming as negative. I put an Absolute value formula on these. However, I am trying to filter through the Revenues Items where Incoming Revenue has exceeded the budget and have those values appear as negative. So basically I want a DAX equation that Filters the outputs the Rev Remaining as negative When Abs Spent > Abs Rev Budget. That way I can highlight that the revenues have exceeded the budgeted amount without having to highlight the % SpentRevenue Abolute Value.png 

 

Abs Rev Budget = ABS([Total Budget])
Remaining = SUM('Budgeted Items'[_ActualBudgetAmt]) - SUM('Actual Items'[Spent])
Abs Rev Remaining = ABS([Remaining])
Total Spent = SUM('Actual Items'[Spent])
Abs Spent = ABS('_Measures'[Total Spent])
Total Budget = SUM('Budgeted Items'[_ActualBudgetAmt])

 

1 REPLY 1
v-cherch-msft
Employee
Employee

Hi @bw70316

 

You may create a measure with IF condition.For example:

Measure =
IF (
    [Abs Spent] > [Abs Rev Budget]
        && [Remaining] < 0,
    [Remaining],
    [Abs Rev Remaining]
)

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.