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
LJ16923
Frequent Visitor

Direct Query Converting Number To Text

Hi there, 

 

I'm producing a simple report for work that must include slicer buttons for each day of the week so management can easily view sales trends for each day of the week. 

 

I've managed to use the weekday function to convert the dates to numbers 1-7 (mon-sun) but I want to now convert these numbers to text e.g. IF( day=1, "Monday", IF(day=2, "Tuesday, .... etc. 

 

This doesn't work as I'm trying to convert numbers to text. 

 

I'm using direct query so I cannot use the convert or format functions. 

 

Also there is no checkbox option to allow unrestricted measures via direct query in the data source options (seen this suggestion in other threads)

 

This is a relatively simple formula and for some reason finding impossible to achieve - any help will be much appreciated. 

 

Essentially just need to find a way to convert numbers to text when using a direct query data source. 

 

Cheers,

 

Louis

 

 

1 REPLY 1
amitchandak
Super User
Super User

@LJ16923 , what error does it show?

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.

Top Solution Authors