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
joeydeacan
Regular Visitor

Display the date

Morning all,

 

I wonder if someone could help, I been experimenting with Power BI and Ive got to say I love, Im fairly new to both BI and SQL tho.

 

I am linking directly to a SQL direct Query, everything on my dashboard is perfect, apart for the Date is displayed without the day of the week, I have tried going into the formatting but DDDD is not aviable just DD.

 

Below is an example of what I have got :-

 

If anyone could walk me through it I would be most grateful. everything I have tried says cannot be performed on a Direct Query.

 

deliveredTotal_UnitsTriplesTghTghAreaLamFloatFloatAreaShapesGeoQLeadQSix_mmSix_mmUnitAreaOver_199

29/08/2017 00:00:00656null337657.2930289235.062824171732.8931
01/09/2017 00:00:0046033196223.41null259187.55null834nullnullnull
24/08/2017 00:00:00921null422709.59169335260.76324718921.3515
30/08/2017 00:00:001197null450671.7859688535.644223425.1823
25/08/2017 00:00:00110161549859.0884469385.04831133295.0219
31/08/2017 00:00:007592327489.6720412332.962236625.793
6 REPLIES 6
mede
Resolver I
Resolver I

Calculated Column:

Day = FORMAT(Dim_Date[Date], "dddd")

Thanks,

 

Any chance you could walk me through a little, ideally i would like to format to be dddd/dd/mmm

 

So day, then date then month ?

Hi @joeydeacan

 

I am not 100% sure if you are able to add calculated column in direct query mode.

But normally, you can get that format by simply adding calculated column:

 = FORMAT(Dim_Date[Date], "dddd/dd/mmm")

Cheers mate , but I dont think I can do that on DirectQuery Mode.

 

Maybe I can do something with the Query, but Im not that good either.

This is also easy to achieve in query editor.

 

Select your date column; go to "Add Column" tab; Date dropdown; you generate three new columns: Day Name, Day, Month Name

image.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Then, simply merge those three new columns using a delimiter such as "/" to get the format you need:

image.png

 

Let me know if this works.

 

If query editor is also not allowed, then you are supposed to do it in SQL directly in the data source.

**bleep** thanks man , it does work, but not in DirectQuery tho, wont let me add it in.

 

Arrrgggghhhh so close, thanks for your help tho .

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.