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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Eddie
New Member

Power BI DAX 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,

 

 

1 ACCEPTED SOLUTION
ankitpatira
Community Champion
Community Champion

@Eddie I've seen this error happening also on directquery mode but works fine when published to service (so just ignore it in poewr bi desktop). Just make sure under File -> Options and settings -> Options -> Directquery -> you have allow unrestricted measures in directquery mode ticked. 

View solution in original post

1 REPLY 1
ankitpatira
Community Champion
Community Champion

@Eddie I've seen this error happening also on directquery mode but works fine when published to service (so just ignore it in poewr bi desktop). Just make sure under File -> Options and settings -> Options -> Directquery -> you have allow unrestricted measures in directquery mode ticked. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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