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.
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?
Solved! Go to 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:
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, @Luke_Howells
Based on your description, I created data to reproduce your scenario.
Table:
You may create a measure as follows.
CountAll =
COUNTROWS(
FILTER(
ALLSELECTED('Table'),
'Table'[Audit Score]<=8.999&&
'Table'[Audit Score]<>BLANK()
)
)
Result:
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:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Try like
calculate(count(Table[Site_name]),Table[Audit Score]<=8.999)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
97 | |
82 | |
67 | |
61 |
User | Count |
---|---|
150 | |
120 | |
99 | |
87 | |
68 |