The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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?
Solved! Go to Solution.
SUMX is a DAX function. It won't work in Query Editor.
I think your formula would work fine without it
SUMX is a DAX function. It won't work in Query Editor.
I think your formula would work fine without it
Thank you! It worked perfectly without it.
Very grateful for your quick response and super simple solution.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
82 | |
63 | |
54 | |
52 |
User | Count |
---|---|
127 | |
118 | |
81 | |
65 | |
64 |