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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Eddie
New Member

Multiple values error

I created a mesasure using import mode and was able to use it in a vizualization. However, when I use the same measure in direct query mode, I get the following error: " MdxScript(Model) (1,169) calculation error in measure "Measure table[Measure Name]: A table of multiple values was supplied where a single value was expected.

 

Again I created the same value in import mode and did not get this error. Any suggestions on how to fix this?

 

Thanks,

 

 

5 REPLIES 5
Seth_C_Bauer
Community Champion
Community Champion

@Eddie There are some DAX functions that will not work in DQ mode. What is the measure, and what version/Database are you running it against?


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG

I'm running against Azure SQL db. The measure calculates the sum of hours from a fact table based on "reporting period from" and "reporting hours to" values.

@Eddie Did you check the data types of the values? Are they the same in the database as they are when you import? Often Power BI will choose it's own "best fit", while DQ will use what is in the database.


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG

I'll look into that. Where can I find a list of functions that are not supported in DQ?

 

 

@Eddie It doesn't initially sound like you should have issues with the function, but I there is this compatability wiki. Another quick check, in "Options and Settings -> Options -> DirectQuery -> make sure you have the "Allow unrestricted measures in DirectQuery mode" checked...


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG

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.