Forum Discussion
gibaprado
1 year agoNew Member
Coluna personalizada no Power Query
Como incluir uma coluna personalizada que multiplique uma coluna com valor inteiro por uma coluna de hora? O Excel converte a hora em número serial e multiplica normalmente, mas no power query não es...
- 1 year ago
Omid_Motamedise
1 year agoSuper User
To multiply an integer column by a time column in Power Query, first ensure the time column is in the "time" data type. Then, create a custom column using the formula
= [IntegerColumn] * (Duration.From([TimeColumn]) / #duration(1, 0, 0, 0))
This converts the time column to a duration (fraction of a day) and multiplies it by the integer column. The result will be the integer value multiplied by the equivalent hours from the time column.