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
ricardocamargos
Continued Contributor
Continued Contributor

Average Line with "Show items with no data"

Hi there,

 

Has anyone faced a situation like this ?? :

 

I have a average line from Analytics pane, also I selected the option "Show items with no data". The average value is not considering 7 months, just 6.

 

Capture.PNG

 

Thank you,

 

Ricardo

1 ACCEPTED SOLUTION
v-jiascu-msft
Employee
Employee

Hi @ricardocamargos,

 

Yes, I reproduced your situation. I think this has nothing to do with right or wrong. It's something about how the average line is designed. There could be a workaround.

1. Replace the null value with 0 in the data table.

2. Or modify the measure like this:

Measure =
VAR MValue = SUM ( Table1[Column2] ) RETURN IF ( ISBLANK ( MValue ), 0, MValue )

3. If you want the Analysis lines work in another way, please submit or vote an idea here: https://ideas.powerbi.com.Average Line with Show items with no data .jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

 

 

Community Support Team _ Dale
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

1 REPLY 1
v-jiascu-msft
Employee
Employee

Hi @ricardocamargos,

 

Yes, I reproduced your situation. I think this has nothing to do with right or wrong. It's something about how the average line is designed. There could be a workaround.

1. Replace the null value with 0 in the data table.

2. Or modify the measure like this:

Measure =
VAR MValue = SUM ( Table1[Column2] ) RETURN IF ( ISBLANK ( MValue ), 0, MValue )

3. If you want the Analysis lines work in another way, please submit or vote an idea here: https://ideas.powerbi.com.Average Line with Show items with no data .jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

 

 

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

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.