Forum Discussion

clarkey1988's avatar
clarkey1988
Helper II
5 years ago
Solved

Count Rows based on a value in a column

Hi,   I'm wondering if anyone can help.   I am trying to divide the $ amount in route revenue evenly by the number of rows an order header number has.   So in the first example below it would b...
  • AlB's avatar
    5 years ago

    Hi clarkey1988 

    Try this for a calc column:

    Split Revenue V2 =
    DIVIDE (
        Table1[Route Revenue],
        CALCULATE (
            COUNT ( Table1[ord_hdrnumber] ),
            ALLEXCEPT ( Table1, Table1[ord_hdrnumber] )
        )
    )

     

    Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

    Contact me privately for support with any larger-scale BI needs, tutoring, etc.

    Cheers