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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
ChemEnger
Advocate V
Advocate V

Don't show null value on reference line on line chart

I have a line chart, with temperature data against date.  The various temperatures that I am measuring (selected by slicer against an unpivoted dataset) always have an upper limit but not always a lower limit.  For the data with no limit, the reference line is showing as zero - is there a way (other than a calculated column) to not show the line if blank?

 

The limit data is in a second table (CQA = Critical Quality Attirbute) connected to the unpivot by tag number = Instrument ID.  I have tried adding an IF... BLANK() calculated column to the CQA table, to no avail.

 

CQA Table with max & min CQA, and calculated LSL column:

LSL = IF([Min CQA]>0,[Min CQA],BLANK())

ChemEnger_0-1727789367212.png

Relationship between Unpivot & CQA:

ChemEnger_4-1727789839016.png

Example with both Max & Min limits:

ChemEnger_2-1727789543510.png

Example with (incorrect) 0.0 lower limit (this is the same whether I use Min CQA or the calculated LSL:

ChemEnger_3-1727789607516.png

 

 

4 REPLIES 4
Anonymous
Not applicable

Hi, @ChemEnger 

Thanks for amitchandak's reply. Open the link but no files. Could you please check to see if the file. Feel free to help.

Here are some notes:
If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Best Regards,
Yang

Community Support Team

ChemEnger
Advocate V
Advocate V

Thanks for the quick reply @amitchandak,

 

Just tried that and got the same outcome 🙁  I have tried:

LSL = Min(CQA[Min CQA])
LSL = IF(Min(CQA[Min CQA])>0,Min(CQA[Min CQA]),BLANK())
LSL = IF(NOT(ISBLANK(Min(CQA[Min CQA]))),Min(CQA[Min CQA]),BLANK())
ChemEnger_0-1727796265958.png

(I was using the 'Min of' [Min CQA] here before)

 

All still show the 0.0 line on the chart.  @Anonymous thanks for the reply.  The expected output is no lower reference line on the chart, as the Min CQA doesn't exist for some data, as per my original post.  This is what I would expect to see:
ChemEnger_0-1727857977264.png

 

Cleansed version of the file saved on OneDrive Dropbox - Null LSL (Edit: Dropbox rather than OneDrive, although I could still see the file!)
amitchandak
Super User
Super User

@ChemEnger , Based on what I got you should use a measure in constant line using Fx option

 

a measure like below

m1 = Min(Table[LSL])

 

use in constant line

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak thanks for the suggestion, but this is not working:

jan_steger_0-1743147998538.png

As well with a MIN-function in the Measure it is plotting a line at 0.



Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors