Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
Hello all,
I want to convert the data in int to minutes. How can I do that?
Values in the places indicated in blue have an int data type. I want to convert the values here in minutes. Thank you in advance for your help.
Hi,
Please try to create column like this:
Column =
VAR a = 'Table'[Kalan Zaman(Dakika)]
RETURN
TIME ( ROUNDDOWN ( a / 60, 0 ), a - ROUNDDOWN ( a / 60, 0 ) * 60, 0 )
The result shows:
Hope this helps.
Best Regards,
Giotto
Hi @v-gizhi-msft,
Thank you for the help. But my problem has not been solved yet and I need to solve this problem quickly. I have to convert the integer data (indicated in red) in the table in minutes. The part indicated with blue color was created with dax query. Note: The data type of the Start Date field is datetime.
Hi,
Do you want to combine your date column and these three columns(after converted to time format)?
Could you please share an expected result as screenshots?
Best Regards,
Giotto
Hi @v-gizhi-msft ,
The desired result is to show the user how far the piece has progressed and how long the piece is left. The values in the table are in integer data type (Date field is created with datetime and blue is specified with dax query) The aim is to convert the integer values in minutes to give the user the number of minutes since the start of the track and how many minutes are left until the piece ends. Do you think combining the date column and the other 3 columns here is my purpose? It made sense to me.
Hi @Anonymous ,
can you show us an example of the desired result?
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
Hi @mwegener,
The desired result is to convert the integer values here in minutes to show the end user how long the part lasts.
Hi @Anonymous ,
what unit does the integer values have?
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
Hi @mwegener ,
Sorry, I didn't understand what you mean by unit. 🙂 Values in the database are of integer data type. I have to convert it in minutes.
Hi @Anonymous ,
and I didn't understand what you mean. 😁
There is an integer value, for example 60.
What does this 60 mean? Seconds? Minutes? Hours?
How should the 60 be displayed in its minute display?
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
Hi @Anonymous ,
take a look at this.
https://docs.microsoft.com/en-us/dax/time-function-dax
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
Hi @mwegener,
Thank you for the help. But my problem has not been solved yet and I need to solve this problem quickly. I have to convert the integer data (indicated in red) in the table in minutes.
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
108 | |
108 | |
108 | |
90 | |
61 |
User | Count |
---|---|
169 | |
138 | |
135 | |
102 | |
86 |