Forum Discussion
aviritia
8 years agoFrequent Visitor
Slow calculations with DISTINCTCOUNT
Hello Guys! I have a list of users with all their accesses and I wanted to see how many users I have for the same country, same system, same risk ID and same business role. To achieve that I used...
akyler
8 years agoRegular Visitor
In general, I think DISTINCTCOUNT causes performance issues. COUNTROWS on a summarized table might actually provide much better performance. Something like:
=COUNTROWS(
SUMMARIZE(
FILTER('raw data',
[Country] = EARLIER([Country])
&&[System] = EARLIER([System])
&&[Access Risk ID] = EARLIER([Access Risk ID])
&&[Composite/Business Role] = EARLIER([Composite/Business Role]))
,[User ID]))