Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

Filter limitations working with large tables

$
0
0

Hi,

 

I have a table of completed orders and I want to calculate orders to date (OTD) for each visitor.
I have written this formula:

OTD =
VAR VID = 'powerbi CompletedOrders'[VisitorId]
VAR OID = 'powerbi CompletedOrders'[OrderId]
RETURN
CALCULATE (
COUNT('powerbi CompletedOrders'[OrderId]),
FILTER (
'powerbi CompletedOrders',
'powerbi CompletedOrders'[VisitorId]=VID),
FILTER (
'powerbi CompletedOrders',
'powerbi CompletedOrders'[OrderId]<OID))

I get this error: "The operation has been cancelled because there is not enough memory available for the application."

I understand that my table is too big (200k+ rows) for double Filter. I was looking how to write something similar to LOOP function in DAX but with no success.

I would love to hear your suggestions for a workaround.

Thanks!


Viewing all articles
Browse latest Browse all 213819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>