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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
ashikalahi333
Regular Visitor

Line chart is not working for zero values

In the attached line chart with green line for 3rd sep and 10 sep the distinct count is 1 but for 17 and 24 sep the value is zero but the line is not decreasing to bottom for zero values. I need suggentions for this. Thanks is advance. I already use +0 in the measure but it didn't work.

 

1.png

 

2 ACCEPTED SOLUTIONS
Ritaf1983
Super User
Super User

Hi @ashikalahi333 
Try to change a type of X-axis to "continuous" from format options >>x-axis >> type.

If it won't help share the link for dummy pbix to work with.

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

Anonymous
Not applicable

Hi @ashikalahi333 ,

 

You can try modifying as

Public Liability Count (Unique Property) = var _a=CALCULATE(DISTINCTCOUNT(QSFExpiredContractorLiabilityAndInsurances[Name]), FILTER(QSFExpiredContractorLiabilityAndInsurances, QSFExpiredContractorLiabilityAndInsurances[Public liability Copy] = "1"))
return IF(ISBLANK(_a)&&NOT(ISBLANK([Trade License Count])),0,_a)

Here's the result.

vstephenmsft_1-1696397597722.png

By the way, pay attention to protect data privacy, this is a public forum.

 

Best Regards,

Stephen Tao

 

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

2 REPLIES 2
Anonymous
Not applicable

Hi @ashikalahi333 ,

 

You can try modifying as

Public Liability Count (Unique Property) = var _a=CALCULATE(DISTINCTCOUNT(QSFExpiredContractorLiabilityAndInsurances[Name]), FILTER(QSFExpiredContractorLiabilityAndInsurances, QSFExpiredContractorLiabilityAndInsurances[Public liability Copy] = "1"))
return IF(ISBLANK(_a)&&NOT(ISBLANK([Trade License Count])),0,_a)

Here's the result.

vstephenmsft_1-1696397597722.png

By the way, pay attention to protect data privacy, this is a public forum.

 

Best Regards,

Stephen Tao

 

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

Ritaf1983
Super User
Super User

Hi @ashikalahi333 
Try to change a type of X-axis to "continuous" from format options >>x-axis >> type.

If it won't help share the link for dummy pbix to work with.

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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