Ravi Kumar
Registered User.
- Local time
- Today, 14:09
- Joined
- Aug 22, 2019
- Messages
- 162
Dear all ,
I have created bar charts in my report using modern chart which has 3 data :
1. Month - in X-axis
2.Sum of complaints: in y - axis
3. Type of issue - category
My sql cose of the query(source data) is like this:
My SQL for chart is like this :
My SQL for chart axis is like this:
[Complaint Received On By Month]
I need solution for below two issues:
1. The X-axis is sorting based on text format , but actually it is month (for ex it is showing February 2020 first then January 2020), how to correct this?
2. Can a trendline be inserted to the chart?
3. And also when my duration form an error message is coming , how can I solve this?
I have attached my database , please check once
I have created bar charts in my report using modern chart which has 3 data :
1. Month - in X-axis
2.Sum of complaints: in y - axis
3. Type of issue - category
My sql cose of the query(source data) is like this:
SQL:
SELECT DISTINCTROW Format$([Data for issue status].[Complaint Received On],'mmmm yyyy') AS [Complaint Received On By Month], [Data for issue status].[Type of issue], Sum([Data for issue status].[CountOfComplaint Number]) AS [Sum Of CountOfComplaint Number]
FROM [Data for issue status]
GROUP BY Format$([Data for issue status].[Complaint Received On],'mmmm yyyy'), [Data for issue status].[Type of issue], Year([Data for issue status].[Complaint Received On])*12+DatePart('m',[Data for issue status].[Complaint Received On])-1;
My SQL for chart is like this :
SQL:
TRANSFORM Sum([Sum Of CountOfComplaint Number]) AS [SumOfSum Of CountOfComplaint Number] SELECT [Complaint Received On By Month] FROM [data for chart month wise] GROUP BY [Complaint Received On By Month] ORDER BY [Complaint Received On By Month] PIVOT [Type of issue]
My SQL for chart axis is like this:
[Complaint Received On By Month]
I need solution for below two issues:
1. The X-axis is sorting based on text format , but actually it is month (for ex it is showing February 2020 first then January 2020), how to correct this?
2. Can a trendline be inserted to the chart?
3. And also when my duration form an error message is coming , how can I solve this?
I have attached my database , please check once