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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
ksteever
Helper I
Helper I

Date shows time which is not desired

Hello!

I'm using the PowerBI Gantt visualization to try to display a list of projects and associated desired data.  One of the fields I'd like to display is the Updated date (in the resource field). On my original dataset this is indicated as the below: 

ksteever_1-1699472242564.png

I've duplicated the column and set the time as Date only as you can see below.

ksteever_2-1699472273985.png

However when I insert this field into the resource visualization, it displays as below (nevermind the dates not matching):

ksteever_4-1699472408738.png

 

My goal would be to display only at mm/dd/yyyy over the bar (in the yellow area) as well as in the tooltip.  Is there a way I can remove from the T to the end and/or reformat this to display mm/dd/yyyy?

1 ACCEPTED SOLUTION

I was able to resolve this by doing the below from the original dataset:

  1. Click TRansform Data from the transform tab in PowerBI
  2. In power query, duplicate the date field that has the source data
  3. Change data type to text
  4. Click on Transform tab at top of power query
  5. Click Extract then select Text before Delimiter
  6. Enter the delimiter (a space in my case)

Now I get just the date. Looks like this particular visualization preset has an issue with handling dates in the resource field.

View solution in original post

3 REPLIES 3
ksteever
Helper I
Helper I

Hi Dino!

Sorry for not mentioning this initially. I already had it set as that value. I also changed the column to the Option with the * and short date, but it still displays as my initial images. 

I was able to resolve this by doing the below from the original dataset:

  1. Click TRansform Data from the transform tab in PowerBI
  2. In power query, duplicate the date field that has the source data
  3. Change data type to text
  4. Click on Transform tab at top of power query
  5. Click Extract then select Text before Delimiter
  6. Enter the delimiter (a space in my case)

Now I get just the date. Looks like this particular visualization preset has an issue with handling dates in the resource field.

v-junyant-msft
Community Support
Community Support

Hi @ksteever ,

Please try this method:

vjunyantmsft_0-1699506547980.png

Before modifying:

vjunyantmsft_1-1699506565664.png

After modifying:

vjunyantmsft_2-1699506584746.png

Best Regards,

Dino Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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