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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
The8
Helper II
Helper II

Straight Average Line in a Line and Stacked Column Chart

Hi,
I have two tables
Table 1 by Name "Sales" in which I have columns Date, Selling Price.
Table 2 by Name "Orders" in which I have columns Date, Orders Price.

Both these tables are in relationship with other Date Table.
(In both tables I have values for every single in each month)


I have used Line and Stacked Column Chart to visualise Selling Price and Orders Price as below Y-Axis with Date on X-Axis

 

The8_0-1709552283484.png


I want to also calculate DAX measure for Average of Selling Price but this should be represented in a straight line in Line and Stacked Column Chart. This measure as to change dynamically according to drill up or drill down and also as per changes in filter. (Date etc..)

For example :

I need DAX measure for Average Selling Price in Line & Stacked column Chart as below

The below figure is for Clusterd Column Chart-For example

The8_1-1709578390848.png

The8_0-1709578327137.png

The8_2-1709578710609.png

 

Any suggestions..!?

Thanks in advance.

3 REPLIES 3
ray_aramburo
Super User
Super User

Try adjusting the filter on the measure to ALLSELECTED or ALLEXCEPT and using your Date field as reference there.





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





ray_aramburo
Super User
Super User

First create a measure for your Average. Since you want is as a straight line (meaning average of all your data) you'll need to use CALCULATE and ALL Filter.

Average Measure = CALCULATE(AVERAGE(SellingPriceValuesColumn), ALL(TableWithYourValues))

Then add the measure to the field in Line Y axis:

ray_aramburo_0-1709563429036.png

 

Find attached an example for your reference. (PS: Data is from a dummy dataset I built for training purposes)





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





Hi @ray_aramburo ,
Thanks for your response and your answer.

Your answer didn't match my requirement because when I change Dates ths measure will consider complete selling prices and make it average.

I need DAX measure for Average Selling Price in Line & Stacked column Chart as below

The below figure is for Clusterd Column Chart-For example

The8_1-1709578390848.png

The8_0-1709578327137.png

The8_2-1709578710609.png

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors