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
aaronvincentnz
Helper III
Helper III

Date formatting in visualisation

Hello

 

I have dates in my raw data that's been formatted as 'mmm yyyy' format, so the raw data looks like this

aaronvincentnz_0-1605577588508.png

 

I've put 'repmonth' as my legend, but it doesnt reflect the same format from the raw data - dates in the legend (as seen below) showing as d/mm/yyyy with the time stamp

 

aaronvincentnz_1-1605577687089.png

 

aaronvincentnz_2-1605577729687.png

 

Hoping someone can assist so the legend just says 'Jul 2020' etc

 

Thanks

 

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@aaronvincentnz , In that case, one is on the axis and another one is a legend. In any case, it better to have date table joined with the date of your table. Other time intelligence stuff will become easy post that.

View solution in original post

aaronvincentnz
Helper III
Helper III

I managed to find a solution. Thank you

View solution in original post

5 REPLIES 5
aaronvincentnz
Helper III
Helper III

I managed to find a solution. Thank you

amitchandak
Super User
Super User

@aaronvincentnz , In that case, one is on the axis and another one is a legend. In any case, it better to have date table joined with the date of your table. Other time intelligence stuff will become easy post that.

ok, thanks, let me see what i can do and i'll come back if i need further assistance

amitchandak
Super User
Super User

@aaronvincentnz , In this it dates and seems like having timestamp too. So data will group at that level

 

better to have date column

Date = [repdate].date
or
Date = date(year([repdate]),month([repdate]),day([repdate]))

 

Join this with date table have month year there and use that in visual

Column in date table

Month Year = FORMAT([Date],"mmm-yyyy")
Month Year sort = FORMAT([Date],"yyyymm")
Month Rank = RANKX(ALL('Date'),'Date'[Month Year Sort],,DESC,Dense)

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

chart.JPG

 

im trying to replicate the above chart...the blacked out elements are my 'categories' and each category is charted against the month. i want to see of all the 'categories' which are the most important....does that change what you've mentioned above? (I couldn't quite understand how to do what you've suggested above, sorry, novice user)

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.