Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in BI by (11.1k points)

I had a question regarding the Toggle button

  1. I have slicers active and inactive
  2. cities that are active and inactive

I am trying to select the Toggle button ON and it's not showing the active sites

1 Answer

0 votes
by (22.5k points)

Hi Try to use this formula:

Column =
SWITCH (
    TRUE (),
    'Table'[Field1] = "AAA", "ON",
    'Table'[Field1] = "BBB", "OFF",
    SEARCH ( "CCC", 'Table'[Field2], 1, 0 ) = 1, "ON",
    'Table'[Field2] = "DDD", "ON",
    "UNKNOWN"
)

For more deep information on Power BI, register for this Power BI Training 

Related questions

0 votes
1 answer
0 votes
1 answer
asked Nov 26, 2020 in BI by Chris (11.1k points)
0 votes
1 answer
0 votes
1 answer
asked Apr 6, 2021 in BI by Chris (11.1k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...