Forum Discussion
Arnoh
5 years agoHelper III
dax search function based on multiple values from other table
Hello, I have created the following colum. But i would like to replace the search values by a table i have in my model. soort klus dash =
var mutatie = if(SEARCH("mutatie",Werken_klus...
- 5 years ago
Hi Anonymous,
i think i have the solution.
Thanx for helping.
soort klus dash = var mutatie = CONCATENATEX(FILTER(Onderhouds_monitor_soort_klus,Onderhouds_monitor_soort_klus[soort klus]="mutatie"), if(SEARCH(FIRSTNONBLANK(Onderhouds_monitor_soort_klus[omschrijving],1),Werken_klussen[soort klus],,BLANK())<>BLANK(),1)) var renovatie = CONCATENATEX(FILTER(Onderhouds_monitor_soort_klus,Onderhouds_monitor_soort_klus[soort klus]="renovatie"), if(SEARCH(FIRSTNONBLANK(Onderhouds_monitor_soort_klus[omschrijving],1),Werken_klussen[soort klus],,BLANK())<>BLANK(),2)) var reparatie = CONCATENATEX(FILTER(Onderhouds_monitor_soort_klus,Onderhouds_monitor_soort_klus[soort klus]="reparatie"), if(SEARCH(FIRSTNONBLANK(Onderhouds_monitor_soort_klus[omschrijving],1),Werken_klussen[soort klus],,BLANK())<>BLANK(),3)) var storingsdienst = CONCATENATEX(FILTER(Onderhouds_monitor_soort_klus,Onderhouds_monitor_soort_klus[soort klus]="storingsdienst"), if(SEARCH(FIRSTNONBLANK(Onderhouds_monitor_soort_klus[omschrijving],1),Werken_klussen[soort klus],,BLANK())<>BLANK(),4)) return
Arnoh
5 years agoHelper III
Hi Anonymous,
I have te use Dax. In my current colum for example is search for "reparatie", "klachtenonderhoud", "klachtonderhoud", "dagelijks" and if found it should give the value 3.
The data containing these current 4 strings is dynamic. So i want to replace it with values in a separate table.
I hope you understand.
Greetings
Anonymous
5 years agoNot applicable
Hi Arnoh
I am not sure if I understand what you want...do you mean the values in that separate table will change? you want to search the values in the table?
- Arnoh5 years agoHelper III
Hi Vera_33,
Yes exactly. 🙂
- Anonymous5 years agoNot applicable
Arnoh I don't think it is possible, to my understanding...
- Arnoh5 years agoHelper III
Hi Anonymous,
i think i have the solution.
Thanx for helping.
soort klus dash = var mutatie = CONCATENATEX(FILTER(Onderhouds_monitor_soort_klus,Onderhouds_monitor_soort_klus[soort klus]="mutatie"), if(SEARCH(FIRSTNONBLANK(Onderhouds_monitor_soort_klus[omschrijving],1),Werken_klussen[soort klus],,BLANK())<>BLANK(),1)) var renovatie = CONCATENATEX(FILTER(Onderhouds_monitor_soort_klus,Onderhouds_monitor_soort_klus[soort klus]="renovatie"), if(SEARCH(FIRSTNONBLANK(Onderhouds_monitor_soort_klus[omschrijving],1),Werken_klussen[soort klus],,BLANK())<>BLANK(),2)) var reparatie = CONCATENATEX(FILTER(Onderhouds_monitor_soort_klus,Onderhouds_monitor_soort_klus[soort klus]="reparatie"), if(SEARCH(FIRSTNONBLANK(Onderhouds_monitor_soort_klus[omschrijving],1),Werken_klussen[soort klus],,BLANK())<>BLANK(),3)) var storingsdienst = CONCATENATEX(FILTER(Onderhouds_monitor_soort_klus,Onderhouds_monitor_soort_klus[soort klus]="storingsdienst"), if(SEARCH(FIRSTNONBLANK(Onderhouds_monitor_soort_klus[omschrijving],1),Werken_klussen[soort klus],,BLANK())<>BLANK(),4)) return