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
C4178756
Frequent Visitor

Average of Average

I have created an average of a process score by week which is correct and shows in the following graph.

C4178756_0-1693399833068.png

When I put the measure into a table with total or card I get the average as 93.83 which is incorrect as what I need is the average taking from each week.  The cumulative is calculated over 21 weeks.  So is correct in excel as 94.03.  I've attached part of the table at the bottom of the thread. If more is required let me know and I will try to post.

 

WeekPF AverageCumlative Average
1691.0994.42
1789.3394.12
1893.0294.06
1991.6693.93
2093.6693.92
2196.294.03

 

I've tried the following DAX codes but had no success as they all return 93.83.

 

Average Value =
VAR _AVERAGE =
    AVERAGEX (
        VALUES ( 'QA Process Form'[Week] ),
        CALCULATE ( AVERAGE ( 'QA Process Form'[PF Score] ) )
    )
VAR _AVERAGEALL =
    AVERAGEX (
        SUMMARIZE ( ALL ( 'QA Process Form'[Week] ), 'QA Process Form'[Week] ),
        CALCULATE ( AVERAGE ( 'QA Process Form'[PF Score] ) )
    )
RETURN
    IF ( ISINSCOPE ( 'QA Process Form'[Week] ), _AVERAGE, _AVERAGEALL )
 
AND
 
Number of Sales =
AVERAGEX (
    DISTINCT ( 'QA Process Form'[Week] ),
    CALCULATE ( COUNT ( 'QA Process Form'[PF Score] ) )
)
 
 
DatePF ScoreWeekYear
10/02/202220452022
21/10/202144.44292021
23/05/202257.1482022
12/11/202160322021
04/03/202260482022
11/11/202162.22322021
44697.0062.2272022
18/04/202262.8632022
11/07/202265152022
19/01/202265.45422022
30/12/202266.67392022
14/02/202266.67462022
29/04/202266.6742022
09/02/202267452022
04/01/202268402022
15/05/202368.8972023
09/05/20227062022
18/07/202270162022
20/06/202270122022
20/10/202170292021
07/03/202270492022
27/01/202371.43432023
03/06/202271.4392022
03/02/202371.43442023
07/01/202271.43402022
28/02/202272482022
20/07/202272162022
09/10/202172.5272021
28/02/202272.5482022
28/07/202373.33172023
26/07/202374172023
26/10/202275302022
07/06/202275102022
20/05/20227572022
31/01/202275442022
07/03/202275492022
12/05/202375.3862023
10/08/202375.71192023
26/07/202376172023
13/04/20227622022
01/08/202276182022
07/07/202276142022
06/06/202276102022
2 REPLIES 2
C4178756
Frequent Visitor

Sorry for the confusion. Hopefully I will explain it a little clear here.  I've created a measure of an average and this is dispalyed in the first graph and is correct. What I now need is a calculation of the average of each week.  So the measure will give the following averages, and now i want an overall average taken from the weeks.

WeekPF Average

195.07
294.89
395.58
492.5
593.81
694.66
792.77
892.51
990.56
1096.08
1195.49
1294.41
1396.32
1496.87
1598.06
1691.09
1789.33
1893.02
1991.66
2093.66
2196.2

 

Hope this makes sense. Let me know if not.

 

Anonymous
Not applicable

Hi @C4178756 ,

I'm a little confused about your needs, Could you please explain them further? It would be good to provide a screenshot of the results you are expecting and desensitized example data.

Thanks for your efforts & time in advance.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.