Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreShape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.
Aparece este error cuando intento crear una columna en Power BI:
La función 'SWITCH' no admite la comparación de valores de tipo True/False con valores de tipo Text. Considere la posibilidad de utilizar la función VALUE o FORMAT para convertir uno de los valores.
¿Cómo soluciono esto?
Aquí está el DAX para la columna que estoy creando:
Solved! Go to Solution.
@Neill_ , Creo que la fórmula no se utiliza correctamente
Debería ser como
SWITCH(
TRUE(),
SEARCH("Yes",'looker_tables lkr_Questionnaire'[02_Animals_Processed__003_Have_animals_been_supplied_for_Service_Kill_*846fa9d1-9ac6-4663-b4fc-4298487c7406],0) >0,"Service Kill",
SEARCH("Yes",'looker_tables lkr_Questionnaire'[02_Animals_Processed__004_Have_animals_been_processed_for_Supplementary_supply_*bd69ebd2-f869-4593-b75d-e9bf0f4a8e4f],,0)>0,"Suministro suplementario"
BUSCAR("1",'looker_tables lkr_Questionnaire'[02_00 002 SSY SKY],,0) >0,"Ambos"
)
@Neill_ , Creo que la fórmula no se utiliza correctamente
Debería ser como
SWITCH(
TRUE(),
SEARCH("Yes",'looker_tables lkr_Questionnaire'[02_Animals_Processed__003_Have_animals_been_supplied_for_Service_Kill_*846fa9d1-9ac6-4663-b4fc-4298487c7406],0) >0,"Service Kill",
SEARCH("Yes",'looker_tables lkr_Questionnaire'[02_Animals_Processed__004_Have_animals_been_processed_for_Supplementary_supply_*bd69ebd2-f869-4593-b75d-e9bf0f4a8e4f],,0)>0,"Suministro suplementario"
BUSCAR("1",'looker_tables lkr_Questionnaire'[02_00 002 SSY SKY],,0) >0,"Ambos"
)
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.