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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

Constant Average

Hey guys, I need some help here.

I have to create an average line for each category for the selected period.

I create a measure like this:  

Constant average vendorx = CALCULATE(SUM([Bugs])/DISTINCTCOUNT(Ddate[Date]); FILTER(FCreateClosedWorkItem; FCreateClosedWorkItem[Vendor] = "vendorx"))
 
But the line respect the date and I want a constant line for the selected period.


What I haveWhat I haveWhat I needWhat I need

Did I make myself clear?

Thanks for the help.

1 ACCEPTED SOLUTION
yelsherif
Resolver IV
Resolver IV

try adding allselected(FCreateClosedWorkItem) as an additional filter in the calculate function.
It is better to provide sample data to examine the best solution for your case

View solution in original post

1 REPLY 1
yelsherif
Resolver IV
Resolver IV

try adding allselected(FCreateClosedWorkItem) as an additional filter in the calculate function.
It is better to provide sample data to examine the best solution for your case

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 MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Kudoed Authors