Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi guys,
Can we replace DistinctCount() to CountRows(Values(..)) ? Which one is quicker ?
I have a measure like this :
OrderCount = CALCULATE(DISTINCTCOUNT('Order analysis'[order Id]),
FILTER('Order analysis', ('Order analysis'[WIP open] <= LASTDATE('WIP Date'[Date])
&& 'Order analysis analysis'[WIP closed] >= FIRSTDATE('WIP Date'[Date]))))
Which apperantly taking very long processing time and sometime out of memory.
Thanks,
Hi guys,
so currently I changed my measure to be like this :
OrderCount =
VAR TmpOrder = ADDCOLUMNS(
SUMMARIZE(
FILTER('Order analysis', ('Order analysis'[WIP open] <= LASTDATE('WIP Date'[Date])
&& 'Order analysis'[WIP closed] >= FIRSTDATE('WIP Date'[Date]))
),
'Order analysis'[Order Id])
,"tmp",1
)
RETURN SUMX(TmpOrder, [tmp])
And it looks faster. Is it correct to use that ?
Thanks,
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 76 | |
| 37 | |
| 31 | |
| 27 | |
| 27 |