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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Measures working/showing correct with direct query

Hi, 

 

I have a datamodell with import and direct query tables. I have tried to make som simple measures but some works some does not.

example =blank works, but <>blank does not work. When I switch the direct query table into import then the measures work just fine and show the correct results. What are the limitation with measures and direct query??? 

No DirectQuery options are available.

4 REPLIES 4
v-deddai1-msft
Community Support
Community Support

Hi @Anonymous ,

 

What's your formula?I tested that <>blank() worked in dq mode? Please also refer to  https://docs.microsoft.com/en-us/analysis-services/tabular-models/dax-formula-compatibility-in-directquery-mode-ssas-2016?view=asallproducts-allversions

 

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

 

Best Regards,

Dedmon Dai

Anonymous
Not applicable

Hi,

This is the measure that does not work properly:
calculate(distinctcount(table1[employeer_no],table1[employee_name]<>blank(),table1[active]=1)

This one works:
calculate(distinctcount(table1[employeer_no],table1[employee_name]=blank(),table1[active]=1)

Hi @Anonymous ,

 

Would you please try to use the following measure:

 

 

measure = CALCULATE(DISTINCT(table1[employeer_no]),FILTER(ALL(table1),table1[employeer_name]<>blank()&&table1[active] = 1))

 

 

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

 

Best Regards,

Dedmon Dai

Pragati11
Super User
Super User

Hi @Anonymous ,

 

There are certain limitations on using measures with Direct Query connection in Power BI:

https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-use-directquery

 

Most of the DAX functions are supported in direct query mode except few like Timeintelligence functions, etc.

 

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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