Forum Discussion

Julianvesga's avatar
Julianvesga
Frequent Visitor
7 years ago
Solved

Function Excell Countifs in Power BI

Hi Team, i need to found tha result of the following formula in power BI:

COUNTIFS($A$3:$A$16,$E6,$C$3:$C$16,"<="&E$2)

 

 ABCDE 
1      
2StepTrasactionstime 0.1 
3Input10.1   
4Authorize30.1   
5Input20.2   
6Input30.1 Input4
7Repair20.2 Authorize 
8Input50.3 Repair 
9Input60.1   
10Repair30.2   
11Authorize10.3   
12Input40.1   
13Repair10.1   
14Authorize60.2   
15Authorize20.3   
16Authorize40.3   
  • vivran22's avatar
    vivran22
    7 years ago

    Julianvesga 

     

     

    Hi,

     

    Although the formula suggested by Anonymous  should solve the purpose and should exclude blanks, but you may try this:

     

    CALCULATE(COUNTROWS(Table1),FILTER(Table1,Table1[time] <= .1 && Table1[time] <>BLANK()))

     

    Thanks,

    Vivek

7 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    You can use the following measure:

    Count if Mimick = CALCULATE( COUNTROWS( Table1)  , FILTER( Table1, Table1[time] <=.1))
    • Julianvesga's avatar
      Julianvesga
      Frequent Visitor

      the formula is working but now some transactions do not have time (blank) and the formula counts them as if they were less than 0.2. How could you avoid having blank caillas not be taken into account?

      we are close...thank you.

      • vivran22's avatar
        vivran22
        Community Champion

        Julianvesga 

         

         

        Hi,

         

        Although the formula suggested by Anonymous  should solve the purpose and should exclude blanks, but you may try this:

         

        CALCULATE(COUNTROWS(Table1),FILTER(Table1,Table1[time] <= .1 && Table1[time] <>BLANK()))

         

        Thanks,

        Vivek