Forum Discussion
Amitkr174
Helper III
3 years agoDate DAX Calculation
Hi, tamerj1 johnt75 parry2k Jihwan_Kim ThxAlot VahidDM I am trying to create a DAX for the below case:- IF ( (I:O createddate) > Case Completion Date), then (I:O createddate) - Case ...
Amitkr174
Helper III
3 years agoyes, you are correct, it is a calculated column.
Condition is - if Createddate>CaseCompdate,then Createddate-CaseCompdate,else NULL.
It should stop once Createddate>CaseCompdate is true, rest of the lines in the column should be blank. Output sample is attached.
tamerj1
Community Champion
3 years agoPlease try
=
IF (
'Table'[CreatedDate] > 'Table'[Case_Comp_date]
&& CALCULATE (
MIN ( 'Table'[CreatedDate] ),
ALLEXCEPT ( 'Table', 'Table'[Opp_DealR], 'Table'[CaseNumber] )
) = 'Table'[CreatedDate],
'Table'[CreatedDate] - 'Table'[Case_Comp_date]
)
- Amitkr1743 years ago
Helper III
Below is the result I am getting- Measure 4. I am not able to change the format as well. Please advise.