Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Net New Count per Batch

Hi,  I am new to PowerBI, and I am trying to find the net new count of brands per batch in my data.  Please find the below sample data.   I need to count the Net new brands in each batch, co...
  • smpa01's avatar
    smpa01
    4 years ago

    Anonymous  this is possible with the following measure

     

     

     

    Measure =
    VAR _batch =
        MAX ( 'Table'[_batch] )
    VAR _count =
        COUNTROWS (
            EXCEPT (
                VALUES ( 'Table'[Brand] ),
                SUMMARIZE (
                    FILTER ( ALL ( 'Table' ), 'Table'[_batch] < _batch ),
                    'Table'[Brand]
                )
            )
        )
    RETURN
        _count
    

     

     

     

    You need a quanitifable batch# column