Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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.
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
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
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
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!