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
brianspo
New Member

FLOOR() Function Error in DAX

I'm noticing that the FLOOR() function in a calculated column appears as if the function isn't defined.  If I use CEILING() I'm given autocompletion prompts, but FLOOR() displays as if it isn't defined:

 

2018-07-03 09_47_15-Untitled - Power BI Desktop.png

 

However the function does work (this returns zero when used in a card).

 

I'm on the latest version (2.59.5135.781 64-bit (June 2018)).  Is this a bug?

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

HI @brianspo,

 

Have you test with directquery mode? If this is a case, they are lots of functions not allow to use in direct query mode, please consider to use measure to instead.

 

Regards,
Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

4 REPLIES 4
v-shex-msft
Community Support
Community Support

HI @brianspo,

 

Have you test with directquery mode? If this is a case, they are lots of functions not allow to use in direct query mode, please consider to use measure to instead.

 

Regards,
Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

That was it!  I imported the same data directly to my model and the function was available. 

Aron_Moore
Solution Specialist
Solution Specialist

Could be. My version is a bit newer and no issues. Try downloading again?

 

Capture.PNG

 

It looks like yours is a later release (.421 vs. my .721) and when I download again that's the version I get.

 

I tried again after downloading/reinstalling with the same results.

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.