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
saadat_rda
Frequent Visitor

SUMX in direct querry mode

Hi,

 

I would like to calculate the total based on the client group.

To calculate this I used the DAX expression:

Column = SUMX(FILTER('Table','Table'[ClientGroup]=EARLIER('Table'[ClientGroup])),'Table'[WIP])
 
 
However, i get the error: SUMX is is not allowed in Direct Querry mode.
 
How can I work around this issue?
 
Thank you in advance
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@saadat_rda , You have to create a measure

 

= SUMX(FILTER(allselected('Table'),'Table'[ClientGroup]=max('Table'[ClientGroup])),'Table'[WIP])

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

View solution in original post

3 REPLIES 3
v-zhangti
Community Support
Community Support

Hi, @saadat_rda 

 

You can try the following methods.

Measure =
CALCULATE (
    SUM ( 'Table'[WIP] ),
    FILTER (
        ALL ( 'Table' ),
        [ClientGroup] = SELECTEDVALUE ( 'Table'[ClientGroup] )
    )
)

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello, thank you for your suggestion, it worked.

amitchandak
Super User
Super User

@saadat_rda , You have to create a measure

 

= SUMX(FILTER(allselected('Table'),'Table'[ClientGroup]=max('Table'[ClientGroup])),'Table'[WIP])

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

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.