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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors