Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.