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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Calcualte(sum giving an error

Hello Community,

i am trying to create a calculated column and i am getting below error.Can i get suggestion? Thanks

 

Error Message"The expression contains multiple columns, but only a single column can be used in a True/False expression that is used as a table filter expression."

 

delete after use = CALCULATE(SUM([RAW Valid Months]),'03- Contracts'[Sales Org]="AMERICAS"&'04-Software '[P Identifier]='04-Software '[RAW Unique])

1 ACCEPTED SOLUTION

Hi @Anonymous

Perhaps like this?

 

delete after use =
CALCULATE (
    SUM ( [RAW Valid Months] ),
    FILTER (
        ALL ( '03- Contracts'[Sales Org] ),
        '03- Contracts'[Sales Org] = "AMERICAS"
    ),
    FILTER (
        '04-Software ',
        '04-Software '[P Identifier] = '04-Software '[RAW Unique]
    )
)

 

View solution in original post

5 REPLIES 5
jthomson
Solution Sage
Solution Sage

Try using a comma/semicolon depending on your localisation instead of &, if it's still coming up you may need to make some sort of custom column to compare the two 04-Software columns to see if they're equal and then use that in your column

Anonymous
Not applicable

thank you so much for your suggestion.I have tried with , but i am getting the same error.

Hi @Anonymous

Perhaps like this?

 

delete after use =
CALCULATE (
    SUM ( [RAW Valid Months] ),
    FILTER (
        ALL ( '03- Contracts'[Sales Org] ),
        '03- Contracts'[Sales Org] = "AMERICAS"
    ),
    FILTER (
        '04-Software ',
        '04-Software '[P Identifier] = '04-Software '[RAW Unique]
    )
)

 

Anonymous
Not applicable

Thank you so much AIB.

@Anonymous

No worries.

If you're interested, in this article you can read why your first approach was not working.  

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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