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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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?

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.