cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
LSP0weR31 Frequent Visitor
Frequent Visitor

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

Accepted Solutions
Super User
Super User

Re: Dax Formula error: the name sumx wasn't recognised

@LSP0weR31

 

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

 

I think your formula would work fine without it

2 REPLIES 2
Super User
Super User

Re: Dax Formula error: the name sumx wasn't recognised

@LSP0weR31

 

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

 

I think your formula would work fine without it

LSP0weR31 Frequent Visitor
Frequent Visitor

Re: Dax Formula error: the name sumx wasn't recognised

Thank you! It worked perfectly without it.

 

Very grateful for your quick response and super simple solution.

Helpful resources

Announcements
Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Power BI Helps Homeless and Trouble Youth

Power BI Helps Homeless and Trouble Youth

We spoke with Power BI Super User, Greg Deckler, about his charity work

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Kudoed Authors
Users Online
Currently online: 6 members 3,684 guests
Please welcome our newest community members: