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
Lanzette
Regular Visitor

formatting boolean values?

Hi everybody,

 

please excuse my total beginner question. I am lost 🙂

 

I created a table with boolean values in Excel. It looks like this in Power BI:

 

 

boolean-values.PNG

 

How can I change the value “True” into something else? Preferably, a graphic icon? This is what I’m aiming for:

 

boolean-values2.PNG

 

Many hanks for your suggestions and ideas

 

Ulrich

1 ACCEPTED SOLUTION

You're choosing #2 but based on what you're trying to do it looks like you really want #1.

 

For #1 you can go to the query editor, select all the columns, and do a replace values (replace True with the dot)

 

Austin is VP Operations at PowerPivotPro and a professional self-service enthusiast 🙂

View solution in original post

5 REPLIES 5
austinsense
Impactful Individual
Impactful Individual

I really like this question - there are two ways to interpret what you're asking ...

 

1. How do I convert the Trues to Dots in the data itself?

OR

2. How do I convert the Trues to Dots in the visualization

 

For #2, Create a New Measure

NewMeasure = IF ( [Measure] = TRUE(), "●", BLANK() )

 

For #1, Prob Don't Want to Do This, but you would follow a similar if/then logic using the query editor

Austin is VP Operations at PowerPivotPro and a professional self-service enthusiast 🙂

Hi Austin,

 

Thank you so much for your answer!

 

For my purpose I stick to choice #2, creating a new Measure.

 

Unfortunately, I get an error message when I use your DAX code:

 

error.PNG

 

I modified your DAX to:

 

DatabaseFormat = IF ( Themen[Database] = TRUE(); "●"; BLANK() )

 

 

The error message is in German (is there a way to change the language?). It basically says: No single value can be detected in the column Database of the table Themen. I also tried it without the table name (just: [Database]) and got a similar message.

 

Any idea what I'm doing wrong?

 

Ulrich

You're choosing #2 but based on what you're trying to do it looks like you really want #1.

 

For #1 you can go to the query editor, select all the columns, and do a replace values (replace True with the dot)

 

Austin is VP Operations at PowerPivotPro and a professional self-service enthusiast 🙂

Hi Austin,

 

for some reason I can't get the New Measure method to work. But #1 (replacing the values in the query editor) worked out great.

 

Thanks very much for your help

 

Ulrich

Sean
Community Champion
Community Champion

If we could create KPIs within PBI this would have been easier

Currently you have to create in PowerPivot and Import to PBI

https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-import-and-display-kpis/

 

If you'd like to be able to do this in PBI Vote here

https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/8276622-create-kpi-in-designer-fi...

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.