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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.