convert
4 TopicsHow to convert DATE/TIME Column to duration?
Hello Everyone, I linked an external database to access and then linked from access to PowerBI. I am trying to create a dashboard to extract worked hours, but when doing the link described above, the worked hours came as DATE/TIME, not duration, so PowerBI does not sum the hours correctly, I need to convert DATE/TIME to duration but didn't find any solution to make this. I already tried to do as bellow EDIT QUERY / Transform Collum / Transform Time only = The time came i.e. 5:00:00. Also tried to convert as Duration, but PowerBI just give me a message of error, not allowing to convert it. Can someone help me?Solved16KViews0likes5CommentsConvert Calculated Column to DAX Measure to detect one of two values
Hi all Previously from this thread, https://community.fabric.microsoft.com/t5/Desktop/How-to-find-duplicate-values-in-one-column-while-another-column/m-p/3894349 Thanks to one for the members, Ashish_Mathur to create a way to find the duplicate values through the formula shown below. Column = if(CALCULATE(DISTINCTCOUNT(Scanned_Item_Two_Controllers[Scan_Controller_Node_Id]),FILTER(Scanned_Item_Two_Controllers,Scanned_Item_Two_Controllers[Page_Barcode]=EARLIER(Scanned_Item_Two_Controllers[Page_Barcode])))>1,"Duplicate Found!","Unique") I have created another new measure that represent what I want to do where I can detect, 'Duplicate Found!' Filter Value = CALCULATE( COUNTA('Scanned_Item_Two_Controllers'[Column]), 'Scanned_Item_Two_Controllers'[Column] IN { "Duplicate Found!" } ) I hope to get more insights on this matter. Thank you for reading this thread.Solved723Views0likes3CommentsForce Convertion of String to Number using Dax
Hello everyone, I have a column that was created with DAX (hence cannot use power query) as a Text that needs to be converted to Number. However, sometimes on this column there are non-numerical, non-roman characters as the source is taken from multiple languages around the world. When using CONVERT function, if only in one of the rows there is a special character, all rows are changed to #Error. I want to know if there is a function that forces the convertion (omitting or deleting the special character) or at least that changes to #Error only the row with the problem, and not the entire column. Many thanks,669Views0likes2CommentsConvert text value to long time
Hello comunity. I have duration value in sec(integer), I use DAX to convert it to time Movement Time = VAR Duration ='Summary table'[Duration(sec)] VAR Hours =INT ( Duration / 3600) VAR Minutes =INT ( MOD( Duration - ( Hours * 3600 ),3600 ) / 60) VAR Seconds =ROUNDUP(MOD ( MOD( Duration - ( Hours * 3600 ),3600 ), 60 ),0) VAR H =IF ( LEN ( Hours ) = 1, CONCATENATE ( "0", Hours ),Hours) VAR M =IF (LEN ( Minutes ) = 1, CONCATENATE ( "0", Minutes ),Minutes) VAR S =IF (LEN ( Seconds ) = 1, CONCATENATE ( "0", Seconds ),Seconds) RETURN CONCATENATE (H,CONCATENATE ( ":", CONCATENATE ( M, CONCATENATE ( ":", S ) ) )) Then I try appy time format for this column and got error So this perfectly works untill my time value less or equall to 23:59:59. question - how can I convert duration to time like hhh:nn:mm and apply time format as wellSolved1KViews0likes3Comments