Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
I have a measure to sum the duration of minutes to hours. The problem is, its working perfect but only as a table or matrix?! I can not put the measure to the fiel values to make eg. a bar chart. How can I fix this? And I also cant change the data type of the measure. (It is text)
Solved! Go to Solution.
Hi @Anonymous ,
As @HotChilli said, your measure returns a text which could not be plotted on a chart(Y-axis) .
So you could only apply TotalSeconds to Y-axis instead because it is a number value . And then drag your measure to Tooltips.
Or you could change TotalSeconds to Duration in Power Query as shown below:
Output:
Or refer to this blog:https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/td-p/793639
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
As @HotChilli said, your measure returns a text which could not be plotted on a chart(Y-axis) .
So you could only apply TotalSeconds to Y-axis instead because it is a number value . And then drag your measure to Tooltips.
Or you could change TotalSeconds to Duration in Power Query as shown below:
Output:
Or refer to this blog:https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/td-p/793639
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
TotalSeconds is the only one that is correct for the whole total
The other variables all work from TotalSeconds -> the final result is a text representation of TotalSeconds split into Days,Hours,Minutes,Seconds.
I haven't looked at in detail but it seems right. You have to decide what you want to return.
Presumably this is because the measure returns a text representation D:H:M:S . You can't add this with another value - it doesn't make sense.
You might have a chance if you return a number (seconds, minutes or whatever)
How can I return a number? I found the Measure on the internet, I'm not a DAX Expert 😄
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 38 | |
| 38 | |
| 28 | |
| 27 |
| User | Count |
|---|---|
| 124 | |
| 88 | |
| 73 | |
| 66 | |
| 65 |