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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Nicolas01
New Member

Calcular linea de tendencia solo de los meses que tienen datos

Hola Buenas 

Estoy armando mi dashboard y necesito graficar una linea de tendecia que se muestre solo en los meses que tienen datos distintos de cero, he probado algunas formas pero no logro hacer que funcione. Alguien me puede ayudar?

1 ACCEPTED SOLUTION
v-yilong-msft
Community Support
Community Support

Hi @Nicolas01 ,

I create a dashboard and a table as you mentioned.

vyilongmsft_0-1714359138296.png

Then I use Line chart and create a new calculation.

vyilongmsft_2-1714359326145.png

Calculation = IF([Sum of Total]=0,BLANK(),[Sum of Total])

vyilongmsft_3-1714359525288.png

Finally you will get what you want.

vyilongmsft_4-1714359596502.png

 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-yilong-msft
Community Support
Community Support

Hi @Nicolas01 ,

I create a dashboard and a table as you mentioned.

vyilongmsft_0-1714359138296.png

Then I use Line chart and create a new calculation.

vyilongmsft_2-1714359326145.png

Calculation = IF([Sum of Total]=0,BLANK(),[Sum of Total])

vyilongmsft_3-1714359525288.png

Finally you will get what you want.

vyilongmsft_4-1714359596502.png

 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

thanks you for your answer. i'll try and will comment you if works the solution.

Hi @Nicolas01  ,

Have you solved your problem? If so, can you share your solution here and mark the correct answer as a standard answer to help other members find it faster? Thank you very much for your kind cooperation!

 

 

Best Regards

Yilong Zhou

 

Finally, the solution can be obtained by applying a filter to the data from the "is not" option and indicating "0". Then I filtered the data that did have value and automatically adjusted the trend line.

Nicolas01_0-1715025432993.png

 

 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.