Forum Discussion
How do I have multiple date formats on an X axis?
Hi,
I'm attempting to mimic a graph I modeled in Excel by using a column that had multiple date formats. Some dates were in "Mmm YYYY" format and others were in MM/DD/YYYY format. This purpose was to show weekly data, and then as the months passed it would convert the weekly data to show as monthly (see snapshot of graph below for clarification).
I assumed that if the field was set to "text" it would automatically read the column for its values like the above Excel graph does, but instead PBI immediately converted al data in this column to MM/DD/YYYY.
My question is this: How can I have multiple date formats on my x axis? OR how do I get PBI to read the values of the column without converting it to a date format like Excel does?
Thanks for your help!
4 Replies
- Ashish_Mathur
Super User
Hi,
You cannot have multiple date formats on the X-axis.
- affan
Solution Sage
Hi Anonymous
Can you share some sample data?
- v-yulgu-msft
Microsoft Employee
Hi Anonymous,
It is not possible to show dates in multiple date formats on X-axis. To show dates like above image, you could set the data type of date field to "Text" after importing into desktop.
Regards,
Yuliana Gu
- AnonymousNot applicable
You can open Power Query Editor, find the column and then change the type to Text.