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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
sshaw10
New Member

Line graph with cut off point for average line

Hi. I'm working on an area chart that contains defect counts and a static average of the defect counts. I was able to create a measure that produces a static average line. Now, I want to have the average line cut off to the current month and update when new data is refreshed each month. 

Current measure to get average line: 

Average =
CALCULATE ( COUNTROWS('Table Data'), ALLEXCEPT( 'Calendar','Calendar'[Year] ) )
/[Static Month_number]
   sshaw10_0-1666909206385.png

 

 

Any ideas on how to update my current measure to get an average line that cuts off to the current data? (being sept in this case). Thanks. 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@sshaw10 , Try this measure for line

 

Averagex(Values(Date[Month Year]), calculate(COUNTROWS('Table Data')))

View solution in original post

2 REPLIES 2
sshaw10
New Member

Thanks @amitchandak That measure did the job!

amitchandak
Super User
Super User

@sshaw10 , Try this measure for line

 

Averagex(Values(Date[Month Year]), calculate(COUNTROWS('Table Data')))

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.