Forum Discussion
Date Table Problem
Hello,
I have some data regarding turnover that I am trying to organize by month and quarter. I made a date table that I want to use and put in some random numbers to give me data to populate my graph. However, when I add my date table to the axis it doesn't sort the months in order, and it applies the numbers for all months when I only put data in for Janaury. I have attached the picture below so everyone can see what I mean. Thank you!
10 Replies
- cmilligan262Helper II
BrandonP2121 You need to sort months by month number.
To do this create a new column Month Number = Month(Date)
Click on the month and then sort by Month Number
- iamprajotResponsive ResidentSelect the visual and go to Sort in too ribbon and you should sort the visual by another column that is a sorted column for e.g. dates.
- BrandonP2121Helper II
Hmm, I attempted to do that but no change. Do I need to set up relationships between my tables?
- iamprajotResponsive Resident
- iamprajotResponsive ResidentFor that you need to create a relationship between Datekey[Date] and Vol[Month] otherwise the total of each category will be displayed.
- BrandonP2121Helper II
Okay, I did that and now it took my numbers out of the month and put them into a "Blank" category. Did I mess up my date table?
- daxCommunity Support
Hi BrandonP2121 ,
If possible could you please inform me more detailed information(such as your expected output and your sample data )? Then I will help you more correctly.
Please do mask sensitive data before uploading.
Thanks for your understanding and support.
Best Regards,
Zoe ZhiIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.