Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I used the Duration.FromText to convert a "HH:MM:SS" format for a new columnt from a text field to Duration data type. The Steps are bit odd though as using Duration.FromText does not automatically change the data type to Duration. I had to add another step to do so.
Once it was a duration data type it sums properly but is in a decimal format in the Matrix visual.
I need it to be in HH:MM:SS format like it shows on the transform page.
How do I do that?
Solved! Go to Solution.
Hi @kenwilsonii ,
That behavior is expected. Although might have been set as type duration in Power Query they are shown as number when loaded to the model and also when aggregated in a visual. As a workaround, create a measure then format that measure to HH:MM:SS. If that still doesn't work, you can use FORMAT to convert it to text - that would be FORMAT ([Measure], "HH:MM:SS")
Proud to be a Super User!
so this , does work.
"As a workaround, create a measure then format that measure to HH:MM:SS."
A little annoying though, having to create 2 new measures to get it in a particular format
Hi @kenwilsonii ,
That behavior is expected. Although might have been set as type duration in Power Query they are shown as number when loaded to the model and also when aggregated in a visual. As a workaround, create a measure then format that measure to HH:MM:SS. If that still doesn't work, you can use FORMAT to convert it to text - that would be FORMAT ([Measure], "HH:MM:SS")
Proud to be a Super User!
Left screen grab is the data in a matrix visual and the right one is from the Transform/Data Modeling view.
As you can see in the data modeling view it shows as HH:MM:SS, but in the matrix view it is representated as a decimal. I need the view in the matrix visual to be HH:MM:SS
Please, know that you have plot column as summarize column. So please plot as a don't summarize so i think you get right output.
Thankyou.
@kenwilsonii if above solution not work
So create measure :
HMS = format( table[Answer Speed (AVG)] ) ,"HH:MM:SS")
Thankyou.
User | Count |
---|---|
93 | |
83 | |
77 | |
73 | |
66 |
User | Count |
---|---|
115 | |
104 | |
93 | |
64 | |
61 |