The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance 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] )
)
)
)
User | Count |
---|---|
11 | |
9 | |
6 | |
6 | |
5 |
User | Count |
---|---|
22 | |
14 | |
14 | |
9 | |
7 |