Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe'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
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)
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 74 | |
| 72 | |
| 39 | |
| 35 | |
| 23 |