Forum Discussion
How do I plot a line chart
- 2 years ago
jm9999999 , In the line visual put the numeric value in y-axis and time value in x-axis[The text].
This will sort the x axis on the basis of the text string. Now in the table section, click on the day/time column[text column], this will open column tools on the menu above. Go to sort column by and sort it by index column.
For ex., in this the city names[Text] are sorted on the basis of city ID[numeric]. The sort column by option is visible by clicking on the city button in table pane.
I had set my day time column to text. When I try to set it to time it drops the name of the day "Monday" and just displays the time and any day after Monday the day/time value errors due to the change in type. How would I make the format "nameOfDate" + "time" be considered time. or at the very least be similarly treated as an index or a timestamp.
There is no option to just have name of date + time. Have add the date, or create a column that can provide the distinction. In terms of text it will always sort the values one way or another.
Remember to use a 24-hour clock.
- jm99999992 years agoNew Member
Is there anyway I can go about making a graph with these axis in power BI?
- ChiragGarg25122 years agoSolution Sage
jm9999999 Something could be done.
Try uploading the data using power Query and add another column of index.
Click transform data in PowerBI desktop. Then Enter Data, after the data is added go to Add column and add index starting from 1. this would order all the texting.
Then the desired result could be achieved.
- jm99999992 years agoNew Member
I've tried this,
I am unable to prevent it from sorting my data points unless I put the index first and sort by index. If I do that it doesn't display the day time on the chart. Double clicking on the current sort by option doesn't disable the sorting.I need the graph in index order but I want the x -axis to display the day time column in index order.