Forum Discussion

ebrodie's avatar
ebrodie
Frequent Visitor
3 years ago
Solved

date filtering usint 2 dates in the table

I am new to PowerBI and loving it so far   I have a simple task list with start and close dates – at least it seems simple.  I would usually use multiple OR conditions in an MS Access query   I w...
  • jbwtp's avatar
    jbwtp
    3 years ago

    This returns a table which you can feed to measure, something like:

    Measure = SUMX(Filter('ve2doTaskALL', ([ClosedDate] > Date(2022,9,1) && [closeddate] < Date(2022,9,30)) || ([startdate] < Date(2022,9,30) && (ISBLANK([closeddate]) || [ClosedDate] > Date(2022,9,30)))), [Revenue])

     

    Cheers,

    John