Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello,
I'm having some issues displaying the total result of a Measure with IF statment.
I have this column, based on the following measure:
Solved! Go to Solution.
Hi,
Please try something like below whether it suits your requirement.
VAL_BASE_CALC_SERV_PREST =
SUMX (
VALUES ( 'table_name'[culumn_name_in_the_visualization] ),
IF (
[VAL_MAX_CONTRIB] - [VAL_BASE_OF_II] > [VAL_SERV_PREST],
[VAL_SERV_PREST],
IF (
[VAL_MAX_CONTRIB] - [VAL_BASE_OF_II] <= 0,
0,
( [VAL_MAX_CONTRIB] - [VAL_BASE_OF_II] )
)
)
)
Hi,
Please try something like below whether it suits your requirement.
VAL_BASE_CALC_SERV_PREST =
SUMX (
VALUES ( 'table_name'[culumn_name_in_the_visualization] ),
IF (
[VAL_MAX_CONTRIB] - [VAL_BASE_OF_II] > [VAL_SERV_PREST],
[VAL_SERV_PREST],
IF (
[VAL_MAX_CONTRIB] - [VAL_BASE_OF_II] <= 0,
0,
( [VAL_MAX_CONTRIB] - [VAL_BASE_OF_II] )
)
)
)