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.
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] )
)
)
)
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
9 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
11 | |
11 | |
10 | |
6 |