Forum Discussion
Anonymous
3 years agoNot applicable
NEED HELP
Hi All, I need help in calculating the dates difference for one of my scenario as below i want to calculate current date minus invoice date >7 or invoice date is null as single calculati...
- 3 years ago
Hi, Anonymous
You can try the following methods.
Sample data:Column:
Difference = DATEDIFF([Invoice date],TODAY(),DAY)Measure = CALCULATE(SUM('Table'[Count]),FILTER(ALL('Table'),[Difference]>7)) +CALCULATE(SUM('Table'[Count]),FILTER(ALL('Table'),[Invoice date]=BLANK()))Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
3 years agoNot applicable
Hi hnguy,
below is the screen shot of data.i want to calculate the current date - invoice date >7 or invoice date is null so that i know how many invoices are delayed
v-zhangti
Community Support
3 years agoHi, Anonymous
You can try the following methods.
Sample data:
Column:
Difference = DATEDIFF([Invoice date],TODAY(),DAY)
Measure = CALCULATE(SUM('Table'[Count]),FILTER(ALL('Table'),[Difference]>7))
+CALCULATE(SUM('Table'[Count]),FILTER(ALL('Table'),[Invoice date]=BLANK()))
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.