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
Is it possible to assign a text column as the label for a numeric column in a line chart? This is only necessary because powerbi cannot build visuals from useful datetime or duration values.
In the example below, the line chart is built with dtRunMonth (datetime) on the x-axis and decAvgDurationSeconds (integer) as the values. Both values already exist in my table.
I would like the label '1108' to be replaced by '0:00:18:28' (text field). How can I accomplish this?
Solved! Go to Solution.
@Anonymous Use Chelsie Eiden's duration to display durations as hh:mm:ss for example but leave underlying number numeric. Also, you can use a similar technique to use dates and datetimes in Y-Axis for example:
(1) Chelsie Eiden's Duration - Microsoft Power BI Community
Dates and DateTime in Y - Microsoft Power BI Community
@Anonymous Use Chelsie Eiden's duration to display durations as hh:mm:ss for example but leave underlying number numeric. Also, you can use a similar technique to use dates and datetimes in Y-Axis for example:
(1) Chelsie Eiden's Duration - Microsoft Power BI Community
Dates and DateTime in Y - Microsoft Power BI Community
Sign me up as a Chelsie Eiden fan!
I put it into a single line in the data view to work directly from a SQLServer DateTime field:
DurationNeedsCustomFormat = Hour(MyTable[DateTimeField]) *10000+Minute(MyTable[DateTimeField])*100 +Second(MyTable[DateTimeField])
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 67 | |
| 62 |