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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
krp1317
New Member

Incorrect Measure Result when Dividing Negative Numbers

Hello,

 

I am getting an incorrect measure result when dividing negative numbers (churn actual vs budget). I used this formula as my measure:

% Monthly Churn Budget = SUM('2017 Churn Reasons'[MRC Amount])/CALCULATE(SUM('Monthly Churn Budget'[Churn Budget]))

 

I did essentially the same thing for sales actual vs budget and got correct percentages, but it is not working for churn. As you can see in the photo below the percentages are not correct.

 

I am fairly new to this but have researched a lot of posts so I really apologize if this has been solved elsewhere.

 

Power BI Measure Issue.PNG

 

Thank you!

 

2 REPLIES 2
SoniaRadaelli
Regular Visitor

I Have the same problem.

this is the dax I'm usign:

%Vs LY =
VAR __BASELINE_VALUE = abs(CALCULATE([SALES YTD], 'sales_totale'[FY] IN { "FY2020" }))
VAR __MEASURE_VALUE = [SALES YTD]
RETURN
    IF(NOT ISBLANK(__MEASURE_VALUE),(DIVIDE(__MEASURE_VALUE,__BASELINE_VALUE)))
 
I have this values:
FY2020 sales =  -600
FY2021 sales = 21480
dax result = 3578.3% that is 21480/600 and not 21480/ (-600)
thanks
v-shex-msft
Community Support
Community Support

HI @krp1317,

 

It will be help, if you provide more detailed contents and sample data. 

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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