Forum Discussion
Anonymous
4 years agoNot applicable
Dates error in DAX measure cannot see the error
Hi Experts
Not sure where the error is on the date > 31/12/2021 (not sure this working)
Commission Due = sum(NEWBI_COM[Payment 1]) + calculate(SUM(NEWBI_COMPS[Payment]),FILTER(NEWBI_COMPS,NEWBI_COMPS[Filter?] = "No"), filter(NEWBI_COMPS,NEWBI_COMPS[SO Posting Date] > 31/12/2021 ))
Hi,
Does this measure work?
Commission Due = sum(NEWBI_COM[Payment 1]) + calculate(SUM(NEWBI_COMPS[Payment]),NEWBI_COMPS[Filter?] = "No",NEWBI_COMPS[SO Posting Date]> DATE(2021,3,31))
4 Replies
- amitchandak
Super User
Anonymous , try like
Commission Due = sum(NEWBI_COM[Payment 1]) + calculate(SUM(NEWBI_COMPS[Payment]),FILTER(NEWBI_COMPS,NEWBI_COMPS[Filter?] = "No"), filter(NEWBI_COMPS,NEWBI_COMPS[SO Posting Date] > date(2021,12,31) ))
- Ashish_Mathur
Super User
Hi,
Does this measure work?
Commission Due = sum(NEWBI_COM[Payment 1]) + calculate(SUM(NEWBI_COMPS[Payment]),NEWBI_COMPS[Filter?] = "No",NEWBI_COMPS[SO Posting Date]> DATE(2021,3,31)) - AnonymousNot applicable
testing the measure
- v-xiaotang
Community Support
Hi Anonymous
will it help?
Commission Due = SUM ( NEWBI_COM[Payment 1] ) + CALCULATE ( SUM ( NEWBI_COMPS[Payment] ), FILTER ( ALL ( NEWBI_COMPS ), NEWBI_COMPS[Filter?] = "No" && NEWBI_COMPS[SO Posting Date] > DATE ( 2021, 12, 31 ) ) )Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.