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
johnt75
4 years agoSuper User
You can add a calculated column like
Application =
SWITCH (
TRUE (),
NOT ISBLANK ( 'Table'[Postal] ), "Postal",
NOT ISBLANK ( 'Table'[Online] ), "Online",
"No Application"
)