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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Merinoide
Frequent Visitor

Visual line chart multiple average lines

Hi.

 

I have a table with inflation rate by country and year. 

 

I need make a line chart with multiple average inflation line group by some value in other column. 

 

I made 3 (number 1 in photo) measure that have the average from value column (inflation value). One filter by column that identify G7 country (number 2 in photo), other the G20 and the last one withe all country. 

 

But I don't why all line have the same value, but when I make a card visual (number 3 in photo) I can see the correct value.

 

What is wrong?

 

 

Merinoide_1-1687021961968.png



Table and the columns

Merinoide_0-1687022826653.png

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @Merinoide ,

You can try the following dax:

Measure =
CALCULATE(
    AVERAGE('Headline_consumer_price_inflation_nnual'[Valor]),
 FILTER(ALLSELECTED('Headline_consumer_price_inflation_nnual'),'Headline_consumer_price_inflation_nnual'[G7]="G7"))

Can you provide a sample PBIX that removes sensitive data and table format? We can better understand the problem and help you

 

Best Regards,

Liu Yang

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
Anonymous
Not applicable

Hi  @Merinoide ,

You can try the following dax:

Measure =
CALCULATE(
    AVERAGE('Headline_consumer_price_inflation_nnual'[Valor]),
 FILTER(ALLSELECTED('Headline_consumer_price_inflation_nnual'),'Headline_consumer_price_inflation_nnual'[G7]="G7"))

Can you provide a sample PBIX that removes sensitive data and table format? We can better understand the problem and help you

 

Best Regards,

Liu Yang

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

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.