The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 |
---|---|
17 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
12 | |
9 | |
8 |