Forum Discussion
cnestg8r
9 years agoRegular Visitor
Argument '4' in CALCULATE function is required.
Hi, I am trying this as a calculated column: =if(CALCULATE(COUNTROWS((Sales)),'Calendar'[Date]>=Sales[start],'Calendar'[Date]<=Sales[end],)>0,1,0) but I get the subject error message. Sales[...
- Anonymous9 years ago
Rewrite your code to this:
=if(CALCULATE(COUNTROWS((Sales)),'Calendar'[Date]>=Sales[start],'Calendar'[Date]<=Sales[end])>0,1,0)
I only deleted the last comma in the CALCULATE function call.
Anonymous
9 years agoNot applicable
Rewrite your code to this:
=if(CALCULATE(COUNTROWS((Sales)),'Calendar'[Date]>=Sales[start],'Calendar'[Date]<=Sales[end])>0,1,0)
I only deleted the last comma in the CALCULATE function call.
cnestg8r
9 years agoRegular Visitor
Good catch. I need better glasses.
Many thanks