Forum Discussion

ahmer_malick's avatar
ahmer_malick
Helper II
1 year ago
Solved

Help with Powerbi Formula

I am unable to convert this formula in Powerbi IF(AZ3<>"",COUNTIF($AZ$2:AZ3,AZ3),"")   If the same work center comes each time , its keep on add 1 as a count till the last one is counted ...
  • Chanty4u's avatar
    1 year ago

    Try this 

     

    WorkCenter Running Count =

    IF (

        NOT ISBLANK('Table'[WorkCenter]),

        CALCULATE(

            COUNTROWS('Table'),

            FILTER(

                'Table',

                'Table'[WorkCenter] = EARLIER('Table'[WorkCenter]) &&

                'Table'[Index] <= EARLIER('Table'[Index])

           

    )

        )

    )

  • ahmer_malick's avatar
    ahmer_malick
    1 year ago

    I tried this one previously but didnt work