Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi All -
in a measure column, I am Trying to calculate %difference between 2 columns (Result 1 column) that results into Negative values. I want the negative values to positive and keep the positive values as positive.
I simply could mulitply the column to -100 but it also affects positive values and turns them into negative.
I was hoping an "if" modification in this formula
Solved! Go to Solution.
Hi @joe231 ,
How about this:
% Difference =
VAR __Measure_Value = Data[Result2]
VAR __Baseline_Value = Data[Result1]
VAR __Calculation = DIVIDE( __Measure_Value - __Baseline_Value , __Baseline_Value )
RETURN
IF( __Calculation < 0, __Calculation * -1, __Calculation )
Hi @joe231 ,
Has your problem been solved? If solved, please consider Accept it as the solution to help the other members find it more quickly.
Best regards,
Yadong Fang
Hi @joe231 ,
How about this:
% Difference =
VAR __Measure_Value = Data[Result2]
VAR __Baseline_Value = Data[Result1]
VAR __Calculation = DIVIDE( __Measure_Value - __Baseline_Value , __Baseline_Value )
RETURN
IF( __Calculation < 0, __Calculation * -1, __Calculation )
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
10 | |
10 | |
9 | |
6 |