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

DAX Memory Issue, Text Comparison Calculated Column

$
0
0

Hello,

I am looking at weekly sales data of various products and attempting to use an unrelated parameter table to sort the items into various groups.

So I have a Products table with Sub-Category, Product Style, Type, Brand, UPC, etc... and a segment table with the same columns.

I am trying to create a calculated column in the Products table that determines if the columns have the same values between the Products and Segment tables, then select the value from the "Custom Segment" column in the Segment table. Here is my calculation:

Custom Segment = CALCULATE( VALUES( Segmentation[Cust Segment] ), FILTER( Segmentation, Products[Sub-Cat] = Segmentation[Sub-Cat] &&
					( Segmentation[Brand] = "" || Products[Brand] = Segmentation[Brand] ) && ...

This works with about 3 or 4 columns, but it quickly runs out of memory or locks up the program if I push it to compare 5 or more columns.

Is there a way around this? Any ideas on a better memory friendly calculation?

 

Thank you for any help!

Bobby


Viewing all articles
Browse latest Browse all 213819

Trending Articles



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