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! Request now

Reply
kennoe
Helper I
Helper I

Sum amounts related to specific value in column

I want to sum amounts based on a value that appears in a separate column. The formula I have tried is:

 

"Revenue = CALCULATE(SUM('Initiative Funding'[Amount]),ALLEXCEPT('Initiative Funding','Initiative Funding'[Funding Status]="Expected Revenue"))". 

 

I am getting this error message:

"A single value for column 'Funding Status' in table 'Initiative Funding' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result."

 

I don't understand this error, as I am specifying the value required in the Funding Status column.

 

Steve

4 REPLIES 4
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @kennoe,

 

Please try this:

Revenue =
CALCULATE (
    SUM ( 'IF_Example41'[Amount] ),
    FILTER (
        ALLEXCEPT ( 'IF_Example41', 'IF_Example41'[Funding Status] ),
        SELECTEDVALUE ( IF_Example41[Funding Status] ) = "Expected Revenue"
    )
)

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you. The amended formula removes the error message, however it does not show any values in the table. Things I noticed when trying to get a solution:

  1.  I used the wrong column name in my formula ("Funding Status" should have been "Funding Class") but when I corrected this I still did not get any values for the Revenue measure.
  2. The table has a filter on Funding Status to show only "Released" status. Could this prevent the measure from working, as the Funding Class value of "Expected Revenue" has a Funding Status of "Planned", not "Released"? 

Steve

 

PattemManohar
Community Champion
Community Champion

Could you please post sample input data and excepted output...




Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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