cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
ricardocamargos Established Member
Established Member

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

Accepted Solutions
Microsoft v-jiascu-msft
Microsoft

Re: Average Line with "Show items with no data"

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
Microsoft v-jiascu-msft
Microsoft

Re: Average Line with "Show items with no data"

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

Helpful resources

Announcements
New Kudos Received Badges Coming

New Kudos Received Badges Coming

Kudos to you if you earned one of these! Check your inbox for a notification.

Microsoft Implementation for Communities Wins Award

Microsoft Implementation for Communities Wins Award

Learn about the award-winning innovation that was implemented across Microsoft’s Business Applications Communities.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Kudoed Authors (Last 30 Days)
Users online (5,158)