cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Checking boolean column value with custom column

Hi,

 

I have a problem when creating custom column and need help on how to check boolean column value. I am trying to create following InvFilter custom column where are checked values of Type__c and At_bookkeeping__c columns and based on these InvFilter value sould be set to TRUE or FALSE.

 

Custom column.PNG

However InvFilter is set to FALSE on all rows no matter what is the value of At_bookkeeping__c.

 

Columns.PNG

 

If I change At_bookkeeping__c column type to Text and change formula to [Type__c] = "1. Actual" and [At_bookkeeping__c] = "true") then InvFilter column gets correct values.

 

Columns2.PNG

 

This formula is only part of the final formula, there are several boolean type columns which should be checked in final formula and because of this I wouldn't like to change those to Text type columns.

So can anyone help, what is the correct format to check boolean type column values?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: Checking boolean column value with custom column

In your formula: Instead of writing "TRUE" you have to write true

 

"TRUE" is a text expression and true is one of the boolean expressions.

 

M is also case sensitive, so just true or false allowed here 🙂

 

Imke Feldmann

www.TheBIccountant.com -- How to integrate M-code into your solution  -- Check out more PBI- learning resources here

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

View solution in original post

2 REPLIES 2
Highlighted
Super User III
Super User III

Re: Checking boolean column value with custom column

In your formula: Instead of writing "TRUE" you have to write true

 

"TRUE" is a text expression and true is one of the boolean expressions.

 

M is also case sensitive, so just true or false allowed here 🙂

 

Imke Feldmann

www.TheBIccountant.com -- How to integrate M-code into your solution  -- Check out more PBI- learning resources here

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

View solution in original post

Highlighted
New Member

Re: Checking boolean column value with custom column

Thanks a lot Imke,

 

That solved the problem and now I got the correct results in custom column.

 

BR

Aksa

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors