Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
HI,
I am comparing 2 columns and displaying the required text in the new column using the specs below.
Solved! Go to Solution.
Hi @kalyan209 ,
We can create a calculated column as below.
Column =
VAR par =
VALUES ( 'Audit and Obs Data'[PARENT_ID] )
RETURN
IF (
'Audit and Obs Data'[DOC_TYPE] = "Observation",
"Audit Report without Observation",
IF (
'Audit and Obs Data'[DOC_TYPE] = "Audit"
&& 'Audit and Obs Data'[TRN_ID] IN par,
"Audit Report with Observation",
IF (
'Audit and Obs Data'[DOC_TYPE] = "Audit"
&& NOT ( 'Audit and Obs Data'[TRN_ID] IN par ),
"Audit Report without Observation"
)
)
)
For more details, please check the pbix as attached.
Hi @kalyan209 ,
We can create a calculated column as below.
Column =
VAR par =
VALUES ( 'Audit and Obs Data'[PARENT_ID] )
RETURN
IF (
'Audit and Obs Data'[DOC_TYPE] = "Observation",
"Audit Report without Observation",
IF (
'Audit and Obs Data'[DOC_TYPE] = "Audit"
&& 'Audit and Obs Data'[TRN_ID] IN par,
"Audit Report with Observation",
IF (
'Audit and Obs Data'[DOC_TYPE] = "Audit"
&& NOT ( 'Audit and Obs Data'[TRN_ID] IN par ),
"Audit Report without Observation"
)
)
)
For more details, please check the pbix as attached.
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 2 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 13 | |
| 8 | |
| 7 | |
| 5 | |
| 5 |