Forum Discussion
Graphs for plotting time across Year
Hello all, I am having an issue about plotting time across different period.
For example I want to have a bar chart of the overall time taken for all the different activities across the years. For date, I used the normal year from the date hierarchy, and for overall time this is calculated as below:
- Anonymous2 years ago
Hi AntBI26 ,
Your side of the DAX returns a text type of data:After testing, if you want to use a bar chart to display the total time, you can only convert the total time to seconds or minutes or hours, i.e. make it a number instead of hh:mm:ss.
Because it can only be automatically aggregated to sum if it is a numeric type, if you are using a text or Time type, it can only be automatically aggregated to count, which is obviously not the result you want.
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
1 Reply
- AnonymousNot applicable
Hi AntBI26 ,
Your side of the DAX returns a text type of data:After testing, if you want to use a bar chart to display the total time, you can only convert the total time to seconds or minutes or hours, i.e. make it a number instead of hh:mm:ss.
Because it can only be automatically aggregated to sum if it is a numeric type, if you are using a text or Time type, it can only be automatically aggregated to count, which is obviously not the result you want.
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.