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
Jitmondo
Helper III
Helper III

Average of % Win Rate Measure

Hi All,

 

I have a measure that calculates Win Rate % - I want to work out the average win rate percentage accross a set of criteria example below. The win rate is a measure so is not easily averaged in a dax formula I know of .... I should be receiving the average win rate across all as 17.75 but I cant get it to work.

 

Item     Win Rate

Cars     10%

Bikes     20%

Trucks   33%

Boats     8%

 

I also tried this measure 

Average % of Closed Won = CALCULATE(AVERAGEX('Account Performance Reference Table','Account Performance Reference Table'[Closed Won Win Rate]))
However this gives me a number which matches the total win rate percentage instead of the average 😞
 

Any ideas on what I could do here?

 

Thanks

 

 

1 ACCEPTED SOLUTION
SpartaBI
Community Champion
Community Champion

@Jitmondo 
Measure = AVERAGEX(VALUES('TableName'[Item]), [Win Rate])


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png

Showcase Report – Contoso By SpartaBI


SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Full-Logo11.png

View solution in original post

3 REPLIES 3
Jitmondo
Helper III
Helper III

Thanks @SpartaBI this worked perfectly, at first I thought there was still an issue but I was using the table measure twice instead of using your logic to say calculate by item and then measure !!!

 

Really appreciate the help 🙂

@Jitmondo my pleasure 🙂
Hey, check out my showcase report - got some high level stuff there 🙂
https://community.powerbi.com/t5/Data-Stories-Gallery/SpartaBI-Feat-Contoso-100K/td-p/2449543
Give it a thumbs up over there if you liked it 🙂

SpartaBI
Community Champion
Community Champion

@Jitmondo 
Measure = AVERAGEX(VALUES('TableName'[Item]), [Win Rate])


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png

Showcase Report – Contoso By SpartaBI


SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Full-Logo11.png

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Fabric Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.