We'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 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,
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 |
|---|---|
| 57 | |
| 38 | |
| 33 | |
| 19 | |
| 16 |
| User | Count |
|---|---|
| 68 | |
| 66 | |
| 41 | |
| 34 | |
| 25 |