Forum Discussion
apatwal
4 years agoHelper III
Help in Creating a calculated Column or Measure
Hi, I am new to Power Bi and need help in creating measure to include status column which includes Decrease if Revenue 2020 > Revenue 2021 else Increase for each combination of customer and produ...
- 4 years ago
Hi apatwal ,
You can create a measure with below code:-
Status = IF ( SUM ( 'Table (3)'[revenue 2021] ) < SUM ( 'Table (3)'[revenue 2020] ), "Decrease", "Increase" )Output:-
Thanks,
Samarth
Samarth_18
4 years agoCommunity Champion
Hi apatwal ,
You can create a measure with below code:-
Status =
IF (
SUM ( 'Table (3)'[revenue 2021] ) < SUM ( 'Table (3)'[revenue 2020] ),
"Decrease",
"Increase"
)
Output:-
Thanks,
Samarth