Forum Discussion

likvors_husband's avatar
likvors_husband
Frequent Visitor
4 years ago
Solved

Index based on column attributes w/o group By

Hi Community,

i've found a solution for this case with group by but due to the limited RAM resources (dozens milions of rows) i am looking for an alternative - thus reaching for you 🙂

 

I want to achieve "Index" column which would look like this based on "Invoice" and "database_record_order" but again, without a group by step:

Invoicedatabase_record_orderIndex
A999991
A9910002
B9910011
B9910022
C9910031
D9910041
A9910053
B9910063
B9910074

 

Would that be even possible?

 

Many thanks

Likvor

  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi likvors_husband  - Could you consider not adding the Index?  Perhaps instead you can look at using the DAX RANKX function in measure only when the Index is required by a visualisation.  RANKX – DAX Guide

    Second, you may consider pushing this transformation from Power Query back into the Data Source.  If you are having Memory issues it suggests that Power Qeury needs to load too much data and therefore use to much memory.  You need to ask you DBA or Database Developers to create a view.

     

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi likvors_husband  - Could you consider not adding the Index?  Perhaps instead you can look at using the DAX RANKX function in measure only when the Index is required by a visualisation.  RANKX – DAX Guide

    Second, you may consider pushing this transformation from Power Query back into the Data Source.  If you are having Memory issues it suggests that Power Qeury needs to load too much data and therefore use to much memory.  You need to ask you DBA or Database Developers to create a view.