Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Change slicer values

Hello all,

 

I'm trying to change the values of column operatorGroupId and put these changed values into a new column. 

 

So far I've tried the following: 

test = IF(Incidents[operatorGroupId], "580d91e7-6252-4b98-a0ca-06e6533f4b21","Audioproductie Rijswijk") - gives error that it cannot convert ''580d etc'' from a text based to a true/false. 
 
test = IF(Incidents[operatorGroupId]=FALSE(), "580d91e7-6252-4b98-a0ca-06e6533f4b21","Audioproductie Rijswijk") - Error that DAX does not support comparing values of type text with values of type true/false
 
Any ideas how this is done otherwise?
 
Part of the reason why I'm doing this is because the table for operatorGroupId (OperatorGroups) doesn't want to active a many to one relationship because another look up table (IncidentTypes) already has a similar relation with the Incidents table. I'm confused as to why it refuses because both IncidentTypes & OperatorGroups are look up tables. The above problem can be solved by this one, but I am happy for either solution. 
bendedicon_0-1621413785771.png

 

1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

Try:

test = IF(Incidents[operatorGroupId] = "580d91e7-6252-4b98-a0ca-06e6533f4b21","Audioproductie Rijswijk")





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

1 REPLY 1
PaulDBrown
Community Champion
Community Champion

Try:

test = IF(Incidents[operatorGroupId] = "580d91e7-6252-4b98-a0ca-06e6533f4b21","Audioproductie Rijswijk")





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.