Forum Discussion
callum8004
4 years agoRegular Visitor
Calculated column based on two date columns
Hi First post and brand new to Power BI. I have a table that has two columns that contain dates as followls Customer ID Postal Application Online Application Application 001 19/...
- 4 years ago
callum8004 write this calculated column:
Application = VAR _postal = 'Table'[Postal Application] VAR _online = 'Table'[Online Application] VAR _result = SWITCH( TRUE(), _postal <> BLANK() && _online <> BLANK(), "Both", _postal <> BLANK(), "Postal", _online <> BLANK(), "Online", "No Application" ) RETURN _result
SpartaBI
4 years agoCommunity Champion
callum8004 write this calculated column:
Application =
VAR _postal = 'Table'[Postal Application]
VAR _online = 'Table'[Online Application]
VAR _result =
SWITCH(
TRUE(),
_postal <> BLANK() && _online <> BLANK(), "Both",
_postal <> BLANK(), "Postal",
_online <> BLANK(), "Online",
"No Application"
)
RETURN
_result