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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
_Moosa_
Frequent Visitor

Average Of A Calculated Measure

I would like to create a bar graph in Power BI that shows the monthly trend of a particular number on selected months, along with a straight line representing the average of all the sums of selected months. Could you please assist me with the formula for calculating the average measure field?

 

Capture.JPG

4 REPLIES 4
AnalyticPulse
Impactful Individual
Impactful Individual

hello @_Moosa_ 
try below solution
create this measre for sum

MonthlySum = SUM('YourTable'[Number])

 

below measure for average
AverageMonthlySum =
AVERAGEX(
VALUES('YourDate'[Month]),
[MonthlySum]
)

 

 

 

Learn Power BI free:

https://analyticpulse.blogspot.com

Power BI : getting started

Dax functions

powerbi Visualisation

AnalyticPulse_0-1715829624787.png

 

 

Thanks for your reply but this dosent help i need a straight line foa average this solution calculates moving average on monthly basis.

Use AVERAGEX over ALLSELECTED.

Still not working

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.