Forum Discussion
Anonymous
6 years agoNot applicable
Measure based on Excel formula =IF(AND(OR(...))) to DAX formula
Hello coworker, my [CMF] table is: Obs date outlier Ric Before (calculated column) Ric After (calculated column) 11/12/2019 0 CLF0 CLG0 11/12/2019 0 CLF1 CLG1 11/12/2019 ...
- 6 years ago
Anonymous ,
Create a calculate column in RAW table using dax below:
RawOutlier = VAR Current_Date = RAW[Obs date] VAR Current_RIC = RAW[RIC] VAR Current_price = RAW[price] RETURN IF(COUNTROWS(FILTER(CMF, CMF[Obs date] = Current_Date && CMF[Ric After] = Current_RIC && CMF[outlier] = 1)) >= 1, Current_price, BLANK())You can also refer to the pbix file.
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-yuta-msft
Community Support
6 years agoAnonymous ,
Create a calculate column in RAW table using dax below:
RawOutlier =
VAR Current_Date = RAW[Obs date]
VAR Current_RIC = RAW[RIC]
VAR Current_price = RAW[price]
RETURN
IF(COUNTROWS(FILTER(CMF, CMF[Obs date] = Current_Date && CMF[Ric After] = Current_RIC && CMF[outlier] = 1)) >= 1, Current_price, BLANK())
You can also refer to the pbix file.
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.