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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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)

 

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.