Forum Discussion

alexcatala's avatar
alexcatala
Helper IV
4 years ago
Solved

Count only specific rows

Hi,   I am currently working on a formula to count the number of ratings that are >=2 and divide it against the number of applicants per store:   Qualified candidates = VAR __BASELINE_VALUE = ...
  • v-yalanwu-msft's avatar
    4 years ago

    Hi, alexcatala ;

    Hi, alexcatala ;

    Try it.

     

    Qualified candidates = 
    VAR __BASELINE_VALUE =
        CALCULATE (
            SUM( 'Application Report'[Average rating] ),FILTER('Application Report',
            [Average rating] >= 2))
    VAR __MEASURE_VALUE =
        SUM ( 'Job Report'[Number of Applications] )
    RETURN
        DIVIDE ( __BASELINE_VALUE, __MEASURE_VALUE )
     

     

    The final show:

    or can you share desired result,  which could let me understand your logic?

    If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

    How to upload PBI in Community


    Best Regards,
    Community Support Team _ Yalan Wu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.