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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Calculate column

How can i create calculate column with IF statement ?

3.PNG

1 ACCEPTED SOLUTION

Hi @Anonymous 

 

Your Column names contain "[" and "]" characters and this is reserved for defining a column in M, so you need to wrap your column in [#"[your column]"] and this should clear the error.

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

 

View solution in original post

6 REPLIES 6
az38
Community Champion
Community Champion

hi @Anonymous 

try

= if [ZIPCH037].[LEVEL01].[MEMBER_CAPTION] <> "План ГПКЗ"  then 1 else 0

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

I tried but already another exception

5.PNG

Hi @Anonymous 

 

Your Column names contain "[" and "]" characters and this is reserved for defining a column in M, so you need to wrap your column in [#"[your column]"] and this should clear the error.

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

 

Anonymous
Not applicable

Thanks!
az38
Community Champion
Community Champion

so, @Mariusz gave you a correct solution


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

Remove "(" and ")" 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.