Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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,
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
70 | |
70 | |
38 | |
28 | |
26 |
User | Count |
---|---|
97 | |
88 | |
59 | |
43 | |
40 |