Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Estou fazendo um grafico de incicador, minha tabela base tem as colunas Rebimento instrucao e Registro Final, eu tenho um dia (24 horas), para realizar essa atividade a partir do momento que recebo a instrucao. No mes realizei 70 tarefas, porem 20 passaram de um dia. Entao seria: 50 tarefas envolvidas a 71% dentro do prazo. 20 tarefas envolvidas a 29% fora do prazo. Um dos problemas, seria os casos em que passam 24 horas o PWBI o problema que o pwbi nao apresenta o tempo total real. Nao estou conseguindo passar isso para o Power BI, travei nessa parte. Preciso de um ajuda possivel para: 1 para identificar o tempo de cada tarefa 2 saber o que esta dentro ou fora do prazo 3 Se o que esta dentro do prazo e no minimo 80% das tarefas
Instrução de Recebimento | Registro Final | Tempo total realizado |
20/07/2023 18:08:00 | 21/07/2023 09:13:01 | 15:05:01 |
21/07/2023 16:00:00 | 21/07/2023 16:43:26 | 0:43:26 |
21/07/2023 15:27:00 | 21/07/2023 17:53:31 | 2:26:31 |
24/07/2023 14:15:00 | 25/07/2023 09:05:27 | 18:50:27 |
27/07/2023 13:27:00 | 27/07/2023 15:12:51 | 1:45:51 |
27/07/2023 13:27:00 | 27/07/2023 16:08:30 | 2:41:30 |
27/07/2023 15:59:00 | 27/07/2023 16:44:17 | 0:45:17 |
27/07/2023 16:37:00 | 27/07/2023 17:02:30 | 0:25:30 |
Agradeco a todos pela ajuda desde ja.
Solved! Go to Solution.
HI @luciano1903,
#1, You can use add a calculated column with the DATEDIFF function to calculate on the start and end datetime to get the duration that you spend on the project.
Duração =
DATEDIFF ( 'Table'[Recebimento Instrução], 'Table'[Registro Final], HOUR )
#2, You can add a column with if statement to check if the duration field values is large than 24 hours, then return different tags.
Prazo=
IF ( 'Table'[Duração] <= 24, "Dentro do prazo", "Fora do prazo" )
#3, I'd like to suggest you create measure expression to get the row count with condition and total table rows, then you can divide them to get the percentage of total rows.
Porcentagem dentro do prazo =
DIVIDE (
COUNTROWS (
FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Prazo] = "Dentro do prazo" )
),
COUNTROWS ( ALLSELECTED ( 'Table' ) )
)
Regards,
Xiaoxin Sheng
Obrigado pelo Ajuda! Forte Abraço
HI @luciano1903,
#1, You can use add a calculated column with the DATEDIFF function to calculate on the start and end datetime to get the duration that you spend on the project.
Duração =
DATEDIFF ( 'Table'[Recebimento Instrução], 'Table'[Registro Final], HOUR )
#2, You can add a column with if statement to check if the duration field values is large than 24 hours, then return different tags.
Prazo=
IF ( 'Table'[Duração] <= 24, "Dentro do prazo", "Fora do prazo" )
#3, I'd like to suggest you create measure expression to get the row count with condition and total table rows, then you can divide them to get the percentage of total rows.
Porcentagem dentro do prazo =
DIVIDE (
COUNTROWS (
FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Prazo] = "Dentro do prazo" )
),
COUNTROWS ( ALLSELECTED ( 'Table' ) )
)
Regards,
Xiaoxin Sheng
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
10 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
13 | |
12 | |
11 | |
9 |