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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Need help for Custom Column Formula

I've got a column with mixture of figures (eg 2,000 and 2,000 - 5,000) and i'm suppose to calculate the average of that range (eg [2,000 + 5,000]/2 = 3,500). 

 

I've tried using delimiter to spilt the range and used custom column to calculate the average range. But my original solid figure of 2,000 doesn't appear in the new column column and it appeared as null?  

 

Is my formula for the custom column missing something? 

=([Figure.1]+[Figure.2])/2

1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

@Anonymous 

try create a custom column

if [Figure 2] = null then [Figure 1] else ([Figure 1] + [Figure 2])/2

 


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

View solution in original post

6 REPLIES 6
az38
Community Champion
Community Champion

Hi @Anonymous 

how is your data look like in data source?

 

and [2,000 + 5,000]/2 is equal 3500, not 4500, I think 🙂


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

Capture.PNG

az38
Community Champion
Community Champion

@Anonymous 

so, whats your business logic?

how do you want to calculate Figure_tidy if Figure2 is null?


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

@Anonymous 

try create a custom column

if [Figure 2] = null then [Figure 1] else ([Figure 1] + [Figure 2])/2

 


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

It works! Thank you! 

Anonymous
Not applicable

I need to pop the 300,000 and 500,000 over to the Figure_Tidy Column. How could i do it? 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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