Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Countif

  Hi, I am farily new to Dax and I need to replicate in Power BI this formula I have on Excel. I need to create a calculated in Power Bi that  will look for how many times a number appears on ...
  • Jihwan_Kim's avatar
    2 years ago

    Hi,

    I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.

    Please check the below picture and the attached pbix file whether it suits your inquiry.

     

     

     

    Calculated column expected result =
    DIVIDE (
        1,
        COUNTROWS (
            FILTER (
                Data,
                Data[DEL Delivery reference] = EARLIER ( Data[DEL Delivery reference] )
            )
        )
    )
    
  • Anonymous's avatar
    Anonymous
    2 years ago

    It worked just fine. Thank you very much for the prompt help. Best Regards