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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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