Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Bit2021
Frequent Visitor

How to show minutes or seconds in chart?

I have a dataset then receive a value in seconds.

Bit2021_0-1626594895293.png

How can I show "Probability" in seconds in the chart?

Bit2021_1-1626595606013.png

 

 

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @Bit2021 

 

The values in the time column represent for time values or duration values? No matter which values they are, you need to convert or format them into minutes or seconds first. Then use it as Axis field in the chart. 

 

If they are time values, you can add a column to extract the minute or second values directly with MINUTE function or SECOND function.

 

If they are duration values, you can use HOUR, MINUTE and SECOND functions to extract values first and make a calculation then. For example,

minutes = HOUR([Time])*60 + MINUTE([Time]) + SECOND([Time])/60

seconds = HOUR([Time])*60*60 + MINUTE([Time])*60 + SECOND([Time])

 

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

View solution in original post

3 REPLIES 3
v-jingzhang
Community Support
Community Support

Hi @Bit2021 

 

The values in the time column represent for time values or duration values? No matter which values they are, you need to convert or format them into minutes or seconds first. Then use it as Axis field in the chart. 

 

If they are time values, you can add a column to extract the minute or second values directly with MINUTE function or SECOND function.

 

If they are duration values, you can use HOUR, MINUTE and SECOND functions to extract values first and make a calculation then. For example,

minutes = HOUR([Time])*60 + MINUTE([Time]) + SECOND([Time])/60

seconds = HOUR([Time])*60*60 + MINUTE([Time])*60 + SECOND([Time])

 

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

Kumail
Post Prodigy
Post Prodigy

Hi @Bit2021 

 

If you could send sample .pbix that demonstrate what you are looking to get. It would really help providing you a quick solution.
 
You can send the sample .pbix file by adding it to your drive or dropbox and add the link here. 
 
Regards
Kumail Raza

aj1973
Community Champion
Community Champion

Hi @Bit2021 

The column Time is not converted in Seconds!, shouldn't it be a duration column? or Time?

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.