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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
TMoreira
New Member

Usar o tachometer Indicador de metas

Gostaria de saber se há como usar o tacômetro pra dados, como por exemplo. É preciso resolver essa tarefa, caso seja antes de 10 dias, ficaria inferior ao verde, se fosse resolvido entre 10 e 20 dias, ficaria no amarelo e acima de 30 dias ficaria no vermelho. Mas como base só temos dados completos de início e fim da tarefa (dd.mm.aaaa). 

Alguém saberia me informar se consigo converter esses dados dentro do Power BI para conseguir colocá-los dentro do indicador? 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @TMoreira 

 

You can add a calculated column with DATEDIFF function to calculate the duration days between two dates. 

Duration = DATEDIFF('Table'[Start Date],'Table'[End Date],DAY)

vjingzhanmsft_0-1706238038790.png

Then use it in a gauge visual or a tachometer visual. I created a sample with a custom visual. Use a slicer to toggle between tasks. 

vjingzhanmsft_1-1706238512895.png

There are several custom visuals you can try to achieve a similar result. 

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @TMoreira 

 

You can add a calculated column with DATEDIFF function to calculate the duration days between two dates. 

Duration = DATEDIFF('Table'[Start Date],'Table'[End Date],DAY)

vjingzhanmsft_0-1706238038790.png

Then use it in a gauge visual or a tachometer visual. I created a sample with a custom visual. Use a slicer to toggle between tasks. 

vjingzhanmsft_1-1706238512895.png

There are several custom visuals you can try to achieve a similar result. 

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

May 2025 Monthly Update

Fabric Community Update - May 2025

Find out what's new and trending in the Fabric community.