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
JClishe
Helper II
Helper II

How to rename true/false values in a pie chart?

I have a pie chart that's showing true/false values, and instead of the legend just saying True or False, I'd like to rename them to something more intuitive. But I can't figure out how. Can anyone point me in the right direction?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Okay. So the new column should be

 

IF(Table[Value] = "True", "Trainer", "Outside")

 

Now create a pie chart using this new column.

 

Does this help?

View solution in original post

12 REPLIES 12
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @JClishe,

 

By my test, I couldn't reproduce your visual well, could your share some data sample or attach your Pie chart which could reproduce your scenario so that we could help further on it?

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Here's what the pie chart looks like. In the source system that Power BI is pulling data from, this field is just a check box. If it's checked, Power BI sees it as True. If it's not checked, Power BI sees it as false. 

 

Screen Shot 2018-03-29 at 12.02.39 PM.jpg

Anonymous
Not applicable

Hi @JClishe,

 

How about creating a column using an IF condition, 

 

If(table[Value] = TRUE, "X", "Y")

 

Does this solve your problem?

Im not sure how to do this, can you provide more details?

Anonymous
Not applicable

Hi @JClishe,

 

I am assuming that you have a column with values True and False. My understanding is that you wish to call Replace True and False with more intuitive values.

 

I am recommending you create another column to using an If condition such that it displays textABC if value is true else Text XYZ.

 

Do I understand your problem correctly?

You understand me correctly; the issue is me understanding what to do. I'm very green with Power BI and have never created IF conditions. 

Anonymous
Not applicable

Hi @JClishe,

 

What do you want the label to say when it is True and when it is False? I can help you write an IF Condition.

Thanks for the offer. I'd like True to say "Trainer" and False to say "Outside".
Anonymous
Not applicable

Okay. So the new column should be

 

IF(Table[Value] = "True", "Trainer", "Outside")

 

Now create a pie chart using this new column.

 

Does this help?

That worked. Only issue was it errored out but I was able to figure out that True shouldn't be in quotes. 

 

Thanks for the help!

Anonymous
Not applicable

Hi @JClishe,

 

If this solved your problem, could you please mark it as Accepted?

 

Thanks 🙂

Anonymous
Not applicable

Hi @JClishe,

 

How about creating a column using an IF condition, 

 

If(table[Value] = TRUE, "X", "Y")

 

Does this solve your problem?

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.