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
LSP0weR31
Helper I
Helper I

Dax Formula error: the name sumx wasn't recognised

Hi there,

 

I'm trying to get this formula to give me a custom culomn that creates a 'Spend Profile" for each vendor in the dataset per month.  I get the error the name sumx wasn't recognised, however, I'm sure that is not the only issue with this forumla.

 

if [Vendor Code] = [Vendor Code] and [#"Fiscal year/period"] = [#"Fiscal year/period"] and SUMX([#"FEB 2017 - JAN 2018"]) <100000 then "<100k" else if [Vendor Code] = [Vendor Code] and [#"Fiscal year/period"] = [#"Fiscal year/period"] and SUMX([#"FEB 2017 - JAN 2018"]) >100000 <250000 then ">100k <250k" else if [Vendor Code] = [Vendor Code] and [#"Fiscal year/period"] = [#"Fiscal year/period"] and SUMX([#"FEB 2017 - JAN 2018"]) > 250000 < 500000 then ">250k <500k" else if [Vendor Code] = [Vendor Code] and [#"Fiscal year/period"] = [#"Fiscal year/period"] and SUMX([#"FEB 2017 - JAN 2018"]) > 500000 < 1000000 then ">500k <1M" else "0"

 

Any ideas?

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

@LSP0weR31

 

SUMX is a DAX function. It won't work in Query Editor.

 

I think your formula would work fine without it


Regards
Zubair

Please try my custom visuals

View solution in original post

2 REPLIES 2
Zubair_Muhammad
Community Champion
Community Champion

@LSP0weR31

 

SUMX is a DAX function. It won't work in Query Editor.

 

I think your formula would work fine without it


Regards
Zubair

Please try my custom visuals

Thank you! It worked perfectly without it.

 

Very grateful for your quick response and super simple solution.

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.