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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Conditional Formula does not work

This post has closed.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous 
This is power query formula know as M function. It is difficult to detect the error without see your model. In power query, you may refer to Solved: Collation Error - Microsoft Power BI Community

 

Or try create a calculate column or measure using DAX formula.

Column = if([release_item_id]=blank(), [item_id], [release_item_id])
Measure = if(max([release_item_id])=blank(),max([item_id]),max([release_item_id]))

 

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Short of having the database changed to suit your needs, you'll have to stop the query from folding back to the server before this step. You could try adding an index column. You could also replace values in the column, instead of making a new column, like:

= Table.TransformColumns(NameOfPreviousStep, {{"Release_Item_ID", each Table.ReplaceValue(_, null, [Item_ID], Replacer.ReplaceText, {"Release_Item_ID"})}})

 

--Nate

Anonymous
Not applicable

@Anonymous 
This is power query formula know as M function. It is difficult to detect the error without see your model. In power query, you may refer to Solved: Collation Error - Microsoft Power BI Community

 

Or try create a calculate column or measure using DAX formula.

Column = if([release_item_id]=blank(), [item_id], [release_item_id])
Measure = if(max([release_item_id])=blank(),max([item_id]),max([release_item_id]))

 

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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 community update carousel

Fabric Community Update - June 2025

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