The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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:
Solved! Go to Solution.
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.
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.