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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
ERing
Helper V
Helper V

How to fix conditional column True/False showing as -1 & 0 in Service?

I have a conditional column set up to return True/False, however the slicer on that field displays as -1 and 0 when my report is published to the service. Strangely, it shows as True or False in desktop.

Any ideas on how I can correct this so my slicer shows correctly in the service as well?

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @ERing 
There are 2 ways to get the desired result :
1. Change the data type of your flag column to text:

Ritaf1983_0-1704472494740.png

2. Change the way that you write the formula to :

test 2 = if(your condition,"True","False")
Ritaf1983_1-1704472587922.png

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

View solution in original post

3 REPLIES 3
Ritaf1983
Super User
Super User

Happy to help 🙂

Ritaf1983
Super User
Super User

Hi @ERing 
There are 2 ways to get the desired result :
1. Change the data type of your flag column to text:

Ritaf1983_0-1704472494740.png

2. Change the way that you write the formula to :

test 2 = if(your condition,"True","False")
Ritaf1983_1-1704472587922.png

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

@Ritaf1983  Perfect. Thanks!

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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