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

Need help in creating a calculated column.

Hi all. 

PRI123_0-1666704927959.png

 

 

In the picture above I have "Exec_Name" and "total" ,"Opportunity Number"and "Opportunity value". The "total" itself is a calculated table which uses the below formula:

revenue measure sample = var a = SUMMARIZE(ATE,ATE[Exec_name],ATE[Opportunity_Number],"total",SUM(ATE[Opportunity_value]))
return
a
 
For example, in the picture above , "adam branden"(first exec name) has 2 values mapped to him which are 1500.00 and 412502.37. So , I wanted a calulated column as "revenue" which will add this 1500.00+412502.37 that will result as 414,002.37. 
Likewise for every exec name it should add up the 'n' number "opportunity_value" mapped to that exec_name. How do i create this ? Any help would be much appreciated. Thanks in Advance.

 

Do i require a new calculated column as "revenue" or these adding up of the values can be done in the "total" column itself?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hmm i think your best option would be to first create a calculated column as the formula i gave you first, then do the summary with max

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hello can you please try

Calculate([measure of revenue],allexcept(table,table[exc name])) 

Anonymous
Not applicable

Hi @Anonymous . The measure of revenue is a calculated table. so when i tried using your formula it is not detecting that calculated table.

Anonymous
Not applicable

can you please try this instaed of your main measure?SUMMARIZE(ATE,ATE[Exec_name],ATE[Opportunity_Number],"total",calculate(SUM(ATE[Opportunity_value]),allexcept(table,table[exec name]))

Anonymous
Not applicable

@Anonymous Hi. Tried this:

rev = SUMMARIZE(ate,ATE[Exec_name],ATE[Opportunity_Number],"total",CALCULATE(SUM(ATE[Opportunity_value]),ALLEXCEPT(ATE,ATE[Exec_name])))
 
This is returning an error like this:
The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value.
Anonymous
Not applicable

Hmm i think your best option would be to first create a calculated column as the formula i gave you first, then do the summary with max

Anonymous
Not applicable

@Anonymous okay done

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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