Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Memory error when using rank formula

I have a measure "App version sorted Total Duitable Shpmts Col", and for each unique [ecom source name] which is a column, there is a number in the measure. 



I want to display the [ecom source name] with the highest number in the measure "App version sorted Total Duitable Shpmts Col".
I have created the following measure to obtain the [ecom source name] with the highest number in the measure "App version sorted Total Duitable Shpmts Col":

 

Most used App Version =             
MAXX(
TOPN(1, 'CIN Data Quality', [App Version Sorted Total Duitable Shpmts Col], DESC),
[Ecom Source Name]
)

 

 

The formula works fine for small numbers of rows when I filter the table visualisation.


But when I don't filter, the table has over 200,000 rows, which leads to an error as shown below in the card:


When i click "see details", it shows the error below:

 

 

Is there a way I can obtain the [ecom source name] in the visualisation without ranking them?

  • Anonymous's avatar
    Anonymous
    3 years ago

    1. Create a measure to find Maximum of measure.

     

    Most used App Version Total Duitable Shpmts = MAXX(ALLSELECTED('CIN Data Quality'),[App Version Sorted Total Duitable Shpmts Col])

     

     

    2. Create another measure to find [ecom source name] value when measure = maximum value above.

     

    Most used App Version = 
    CALCULATE(MAX([Ecom Source Name]), FILTER(allselected('CIN Data Quality'),[App Version Sorted Total Duitable Shpmts Col]=[Most used App Version Total Duitable Shpmts]))

     

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    1. Create a measure to find Maximum of measure.

     

    Most used App Version Total Duitable Shpmts = MAXX(ALLSELECTED('CIN Data Quality'),[App Version Sorted Total Duitable Shpmts Col])

     

     

    2. Create another measure to find [ecom source name] value when measure = maximum value above.

     

    Most used App Version = 
    CALCULATE(MAX([Ecom Source Name]), FILTER(allselected('CIN Data Quality'),[App Version Sorted Total Duitable Shpmts Col]=[Most used App Version Total Duitable Shpmts]))