Forum Discussion

andrewa521's avatar
andrewa521
Frequent Visitor
3 years ago
Solved

Trying to do Countif, with changing criteria

Hey all,   I have been browsing with no luck, I think I am trying to do something simple in excel, but cannot make it work.  Here is a sample data set.  Basically just trying to use DAX to do the c...
  • Ashish_Mathur's avatar
    3 years ago

    Hi,

    Write this calculated column formula

    Column = CALCULATE(COUNTROWS(Data),FILTER(Data,Data[Date]=EARLIER(Data[Date])&&Data[Value]>0))

    Hope this helps.