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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
drgoatboy
New Member

New column formula won't save

Hi everyone, 

I'm new to powerbi but enjoying finding my way!

I have a weird problem and I don't know why this is happening.

I wanted to create separate columns for quarterly costs.

I created a new column called 1q.

 

1q = if('all costs'[fiscal quarter]="1", 'all cost'[cost],0)

 

This works great! 

But when I try to create a second column for 2q

2q = if('all costs'[fiscal quarter]="2", 'all cost'[cost],0)

When I hit enter powerbi says it's working on it and then the column just changes to

column =

And the formula won't save. No error message, nothing.

I've tried calling it something else in case 2q clashes somewhere and that doesn't help. 

I've deleted calculated columns in case there are too many but that's not made any difference.

I can add other columns. For example it happily lets me add 2q = 2

I'm rather confused 🤔 

 

Can anyone help please?

 

Thanks. DRG

 

4 REPLIES 4
v-saisrao-msft
Community Support
Community Support

Hi @drgoatboy ,
Can you confirm if your issue is resolved? If it still persists, please consider reaching out to Microsoft Support. Provide them with all the troubleshooting steps you've already taken, which will help them understand the issue better and provide a resolution. They might be able to identify something specific about your issue or provide a solution that isn't immediately obvious.

You can create a Microsoft support ticket with the help of the link below:

How to create a Fabric and Power BI Support ticket - Power BI | Microsoft Learn

 

If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.

 

Thank you.

 

Stephen_Hilton
Regular Visitor

Hey - I think this is a new bug, I've seen it today also, alongside sometimes when the refresh dialog box is completely black.

ahmedoye
Responsive Resident
Responsive Resident

That's a weird one. Try to write the same formula differently without including the Table name. Like: 
2q = if([fiscal quarter]="2", [cost],0)

SEMattis
Advocate III
Advocate III

Try moving the creation of the columns to the QueryEditor and a CustomColumn for both Q1 and Q2 calculations. It would look something like:

 

Table.AddColumn( #PreviousStepinQueryEditor, "Q1", each if [fiscal quarter] = "1" then [cost] else 0). To add the column you can either click the Add Custom Column button in the Query Editor or add code in the advanced editor:

 

SEMattis_1-1741106093749.png

 

 

To give you an idea of how it has been implemented on my side:

SEMattis_0-1741106006944.png

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.