Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

count names on a specific day

  I want to count the names on a chosen day from date table.   Measure= var a=selectvalue('date'[date]) return calculate(count(names),a>startdate&&a<enddate)     The error message is The ex...
  • JarroVGIT's avatar
    6 years ago
    You need to use a filter in your second statement of the calculate expression.

    calculate(count(names),filter(table, a>startdate&&a<enddate))

    If this answered your question, please mark it as the solution. Kudos are welcome! ๐Ÿ™‚