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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Anonymous
Not applicable

How to change PowerBI Slicer visual effect the line graph

Hi All

Hope you can help

 

Below I have some inflation statistics broken down per country displayed via a line graph 

ED95_0-1674813221866.png

 

When I select countries independently everything seems fine

 

However, when I try to select the whole region I get a unrealistic increase

 

ED95_1-1674813793818.png

I suspect that is because the values get summarized as opoosed to mean value being provided

 

Is there any way I can change that and have mean value displayed instead?

 

1 ACCEPTED SOLUTION

Hey @Anonymous ,

 

you are already using a measure, change the SUM aggregation function inside to AVERAGE.

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

5 REPLIES 5
TomMartens
Super User
Super User

Hey @Anonymous ,

 

numeric values used inside any visual are aggregated, the default aggregation function is SUM. This can be changed as in the picture below:
image.png

The above picture shows a table visual and the current aggregation function for the numeric column SalesQuantiy.
The aggregation function can be changed per visual or inside the dataset using the data view:
image.png
Of course, you can also write a DAX measure, but I tend to avoid writing measures, when the challenge can be tackled by adapting the dataset or inside a visual.

Hopefully, this provides what you are looking for.

 

Regards,
Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
Anonymous
Not applicable

Hi Tom

 

Thank you for getting back to me and for your prompt response

 

Apologies if I am being a bit silly, but I can't seem to find where the summarization is

 

The value is already set to be "No calculation"

Because those value come from measures table, I do wonder whether I can alter my DAX expression in a way that will avoid summarization

 

ED95_0-1674815999110.png

 

Hey @Anonymous ,

 

you are already using a measure, change the SUM aggregation function inside to AVERAGE.

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
Anonymous
Not applicable

I Could punch myself in the face now "Facepalm" 😄 

 

Thank you for your help Tom!

Don't hit too hard, things simply happen 🙂



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors