Forum Discussion

DeEviloN's avatar
DeEviloN
Helper III
4 years ago

How to speed up the process?

I have a user risk category based on measures

Норма анализа импорт = " Норма анализа для " & IF(AND('Добавить1'[Изм. класс]="Сред. категория риска",'Добавить1'[Опред. металла]="Au иностр." || 'Добавить1'[Опред. металла]="Ag иностр."),2.5,IF(AND('Добавить1'[Изм. класс]="Выс. категория риска",'Добавить1'[Опред. металла]="Au иностр." || 'Добавить1'[Опред. металла]="Ag иностр."),3.5,IF(AND('Добавить1'[Изм. класс]="Низ. категория риска",'Добавить1'[Опред. металла]="Au иностр." || 'Добавить1'[Опред. металла]="Ag иностр."),1.5,IF(AND('Добавить1'[Изм. класс]="Сред. категория риска",'Добавить1'[Опред. металла]="Au отеч."),2.1,
IF(AND('Добавить1'[Изм. класс]="Выс. категория риска",'Добавить1'[Опред. металла]="Au отеч."),3.1,IF(AND('Добавить1'[Изм. класс]="Низ. категория риска",'Добавить1'[Опред. металла]="Au отеч."),1.1,IF(AND('Добавить1'[Изм. класс]="Сред. категория риска",'Добавить1'[Опред. металла]="Ag отеч."),2.2
,IF(AND('Добавить1'[Изм. класс]="Выс. категория риска",'Добавить1'[Опред. металла]="Ag отеч."),3.2
,IF(AND('Добавить1'[Изм. класс]="Низ. категория риска",'Добавить1'[Опред. металла]="Ag отеч."),3.1,"платины и палладия не предусмотренна")))))))))

 

 

I created a table where, according to the assessment of measures, the required text will be displayed

 

How can I create a measure so that when the grade is received, the required text falls out?
If you do not indicate the score, but simply insert text into the measure under a positive condition, then the program starts to process this measure for a very long time, how can I speed up the process and will it help if I link to a table?

 

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi DeEviloN 

    I think the result above code returned are in text type, like Норма анализа для2.5. What do the results mean? 

    I suggest you can try switch function in above code, , it may be more clear and easier. 

    Do you want the text show blank if the Grade is received? I think you can create a measure by If function.

     

    Measure = IF([Grade]>= Sum(Table[Grade]),blank(),[required text])

     

    If this reply still couldn't solve your problem, please show me a screenshot and code in English. I couldn't understand Russian. You can share a sample file with me, and you can show me a screenshot with the result you want.

     

    Best Regards,
    Rico Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.