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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
IsabelleP
Frequent Visitor

SUMX alternative for Direct Query

Dear Community,

 

I want to do the following: take the revenue of all online channels and devide it through the total revenue. I've created this formular but unfortunately, SUMX is not supported in Direct Query Mode.

 

Online Share of rev. = SUMX(FILTER(vPriceComparison;vPriceComparison[salesChannelType]="ONLINE");SUM(vPriceComparison[financialTurnoverNetEuro])/SUM(vPriceComparison[financialTurnoverNetEuro]))

 

Is there an alternative?

 

Many thanks

Isabelle

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@IsabelleP,

Have you enabled the "Allow unrestricted measures in DirectQuery mode" option? I am able to use SUMX function in DirectQuery mode.

1.PNG
2.PNG


Regards,
Lydia

View solution in original post

2 REPLIES 2
saadat_rda
Frequent Visitor

Hi @Anonymous 

 

The option to allow unrestricted measure in powerBI direct query setting does not appear in my powerBI. Has this been removed since or has the location changed?

Anonymous
Not applicable

@IsabelleP,

Have you enabled the "Allow unrestricted measures in DirectQuery mode" option? I am able to use SUMX function in DirectQuery mode.

1.PNG
2.PNG


Regards,
Lydia

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors