Forum Discussion
Conditional formatting need help
- 3 years ago
Hi JustNewbie ,
Please create a new column:
Column = SWITCH ( TRUE (), 'Table'[Label] = "I" && ( 'Table'[Date1] <> BLANK () && 'Table'[Date2] <> BLANK () ), DATEDIFF ( 'Table'[Date1], 'Table'[Date2], DAY ), 'Table'[Label] = "I" && ( 'Table'[Date1] = BLANK () && 'Table'[Date2] = BLANK () ), DATEDIFF ( 'Table'[Date3], 'Table'[Date4], DAY ) )You will get a column like this and I think this is the result you want:
If you have another question, please open another thread. In a post, we'd better only address one issue. This will cpntribute to the efficiency of problem solving.
Best regards,
Yadong Fang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
JustNewbie , Not sure what is the role of conditional formatting here
if([Label] = "I" ,
Switch( True(),
isblank([Date1]) && isblank([Date2]) , [Date2] =[Date1],
[Date4] =[Date3],
blank()), blank())
- JustNewbie3 years agoHelper I
amitchandak thank you.
I have another condition.. If either Column A or Column B is blank then give me blank, else give me Column B date subtract Column A date in networkdays...
Thank u..- v-yadongf-msft3 years agoCommunity Support
Hi JustNewbie ,
Please create a new column:
Column = SWITCH ( TRUE (), 'Table'[Label] = "I" && ( 'Table'[Date1] <> BLANK () && 'Table'[Date2] <> BLANK () ), DATEDIFF ( 'Table'[Date1], 'Table'[Date2], DAY ), 'Table'[Label] = "I" && ( 'Table'[Date1] = BLANK () && 'Table'[Date2] = BLANK () ), DATEDIFF ( 'Table'[Date3], 'Table'[Date4], DAY ) )You will get a column like this and I think this is the result you want:
If you have another question, please open another thread. In a post, we'd better only address one issue. This will cpntribute to the efficiency of problem solving.
Best regards,
Yadong Fang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.