Forum Discussion
godtooro
2 years agoHelper II
Calculate if
Dear all!
Please I need you support.
I want to calculate if [Due Date] < [Date of DataSet].
I've tried:
Overdue Amount =
var _DuelesDate = FILTER(BIFAR000, BIFAR000[Due Date] < BIFAR000[Date of Dataset])
return
SWITCH(
TRUE,
_DuelesDate, [Amount])
But is not working.
I've tried:
CALCULATE(
[Amount],
BIFAR000[Due Date] < BIFAR000[Date of Dataset])
But neither.
Do you have an idea?
Thank u Anonymous !
Working!!!!!!Thank you so much!
5 Replies
- AnonymousNot applicable
Hello godtooro Try this measure.
Overdue Amount = SUMX( FILTER(BIFAR000, BIFAR000[Due Date] < BIFAR000[Date of Dataset]), BIFAR000[Amount] ) - AnonymousNot applicable
Ensure that both the "Due Date" and "Date of Dataset" columns are properly recognized as date types in your data model.
If they are not, you can change their data types by right-clicking on the column header and selecting "Change Type" > "Date."- godtooroHelper II
Hi Anonymous you were right.
I've changed data type to date and solved.