cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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 Ranks and Rank Icons in 2020

New Ranks and Rank Icons in 2020

Read the announcement for more information!

New Kudos Given Badges Coming

New Kudos Given Badges Coming

We're rolling out new Kudos Given badges. Find out how many Kudos you've given.

November 2019 Community Highlights

November 2019 Community Highlights

Get an overview of the events and great community content from November.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)