Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Support with simplifying my DAX code

Hi all,    I was hoping you may be able to help me, I wrote some DAX a while back for VLOOKUPs and I'm hoping to simplyfy it. I've given it a go today but I am unsure what I'm missing (its probably...
  • MattAllington's avatar
    5 years ago

    I can almost guarantee this is not the best approach. Your formulas are using runtime (measures are runtime) text searches to segment your results. It is better to pre-segment the data in one or more columns in your tables, using power query (preferably) or calc columns. I suggest you investigate a conditional column in power query and see if you can generate a new single column that is loaded into the model that already has these new classifications.