Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Luke_Howells
Helper I
Helper I

NEWBIE HELP! Count of sites where audit score is more than or equal to . . .

Hi All,

 

Still new to all this, so hoping someone can help 😇

I am trying to get a count of the number of sites that have had an audit score that is less than or equal to 8.999.

I know its probably simple but I'm still learning all this and can't work it out. Can someone please help?

 

Capture (1).png

 

1 ACCEPTED SOLUTION

Hi, @Luke_Howells 

 

You may modify the measure as follows.

 

DistinctCount = 
CALCULATE(
    DISTINCTCOUNT('Table'[SiteName]),
    FILTER(
        ALLSELECTED('Table'),
        'Table'[Audit Score]<=8.999&&
        'Table'[Audit Score]<>BLANK()
    )
)

 

 

Result:

x.png

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

5 REPLIES 5
v-alq-msft
Community Support
Community Support

Hi, @Luke_Howells 

 

Based on your description, I created data to reproduce your scenario.

Table:

f1.png

 

You may create a measure as follows.

 

CountAll = 
COUNTROWS(
    FILTER(
        ALLSELECTED('Table'),
        'Table'[Audit Score]<=8.999&&
        'Table'[Audit Score]<>BLANK()
    )
)

 

 

Result:

f2.png

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Hi @v-alq-msft , Thanks for your reply. It works great but I need a distinct count of the number of sites. I should have mentioned that each site is in the data multiple times. I know this would involve a DISTINCTCOUNT but I'm unsure how to incorporate this in 😕

 

Hi, @Luke_Howells 

 

You may modify the measure as follows.

 

DistinctCount = 
CALCULATE(
    DISTINCTCOUNT('Table'[SiteName]),
    FILTER(
        ALLSELECTED('Table'),
        'Table'[Audit Score]<=8.999&&
        'Table'[Audit Score]<>BLANK()
    )
)

 

 

Result:

x.png

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

@v-alq-msft  That's great thank you for your help 😁

 

amitchandak
Super User
Super User

@Luke_Howells 

Try like

calculate(count(Table[Site_name]),Table[Audit Score]<=8.999)

 

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.