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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
RCelur
Frequent Visitor

Function 'SUMX' is not allowed as part of calculated column DAX expressions on DirectQuery model

Hello,

 

We are creating a measure for Weighted Averages using SUMX function, and then based on the value from this measure we would like to bucket our dimension values (Business Units for example) into different categories. We were able to achieve this with Import mode by creating a calculated column, but now that we are trying to replicate the same in Direct Query mode we are unable to do so.

Error - Function 'SUMX' is not allowed as part of calculated column DAX expressions on DirectQuery model

 

Need help in fixing this issue.

 

Thanks in advance!

3 REPLIES 3
amitchandak
Super User
Super User

@RCelur , in direct query mode you will not be able to use earlier, filter in the column. So you need to create segmentation using a measure

https://www.daxpatterns.com/dynamic-segmentation/
https://radacad.com/grouping-and-binning-step-towards-better-data-visualization

 

refer what are few operations supported

https://www.youtube.com/watch?v=My0bLn9voo4&list=PLPaNVDMhUXGbKatyDdOhGbTL3xW2Xy6pA

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Greg_Deckler
Community Champion
Community Champion

@RCelur - Well, there used to be an article that documented which DAX functions were supported for measures and calculated columns. https://msdn.microsoft.com/library/ee634396.aspx

 

But, apparently that document no longer exists. But, in general you can't create calculated columns in Direct Query unless you use a composite model, is that what you are doing? You should be able to use SUMX in a measure.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Pragati11
Super User
Super User

Hi @RCelur ,

 

SUMX function has got a limitation when used with Direct Query mode.

Check the folloiwng link:

https://docs.microsoft.com/en-us/dax/sumx-function-dax

Pragati11_0-1598456680727.png

 

Also, if you can share your SUMX calculation formula, we can suggest a different way of doing it.

One way could be to use SUM function with CALCULATE function.

 

Thanks,

Pragati

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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
Top Kudoed Authors