March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi. I have simple table with sites and region. Struggling to count number of sites per region. So when user select region it count return number of sites. Will this able to flex if I add a site slicer as well.
Here's sample table with data.
Solved! Go to Solution.
Hi @Tevon713 ,
Please try these measrues.
Average of Select Region =
AVERAGEX ( ALLSELECTED ( 'Test 1' ), [Sum Machine Count] )
Static Average ALL =
AVERAGEX ( ALL ( 'Test 1' ), [Sum Machine Count] )
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Tevon713 ,
I might misunderstand the query, but wouldn't it work with an ordinary Measure = COUNTROWS('table') ?
Anytime you select a region in a slicer, it will automatically just count the rows (= Sites) that exist for that region.
If in your table occurs the same site multiple times in a region, I'd recommend a DISTINCTCOUNT ('table'[site])
Let me know if this helps 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
Also happily accepting Kudos 🙂 |
Feel free to connect with me on LinkedIn! |
#proudtobeasuperuser |
Thanks @tackytechtom for your quick reply. Sorry I didn't specify more. You correct in the countrows. I want to flex it count the site, then use in other calculation ie average of select region and static average for all. Maybe it in select avg and static avereage measures... giving incorrect output. I thought for moment I it was in the count.
Here the sample pbix.
https://www.dropbox.com/s/egipxxknpww4eew/Count%20Site%20per%20region.pbix?dl=0
When no filter are selected static average is correct.
When selecting a region select... incorrect for static average, average of select is correct... when site selected both are incorrect.
Hi @Tevon713 ,
Please try these measrues.
Average of Select Region =
AVERAGEX ( ALLSELECTED ( 'Test 1' ), [Sum Machine Count] )
Static Average ALL =
AVERAGEX ( ALL ( 'Test 1' ), [Sum Machine Count] )
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |