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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
wcd1213
Frequent Visitor

Using ALLEXCEPT on calculated table

Hello All,

I have a summarization table that pulls from two different tables in my report. I would like to get the average from other columns split up by name. Question3.png

For example I would like to populate the new column I created with the averages of M1 split up by Will. The values that I am gettting are the same for every name. 

 

Any help is appreciated. 

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @wcd1213 ,

According to your description, here's my solution. Create a calculated column.

Column =
AVERAGEX (
    FILTER (
        'Calculated Table',
        'Calculated Table'[Name] = EARLIER ( 'Calculated Table'[Name] )
    ),
    [M1]
)

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

7 REPLIES 7
v-yanjiang-msft
Community Support
Community Support

Hi @wcd1213 ,

According to your description, here's my solution. Create a calculated column.

Column =
AVERAGEX (
    FILTER (
        'Calculated Table',
        'Calculated Table'[Name] = EARLIER ( 'Calculated Table'[Name] )
    ),
    [M1]
)

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Hi @v-yanjiang-msft

Thank you for the reply.

I tested this expression and the column is not averaging by name. Is there something else I can add to the formula to acheive this?

 

Hi @wcd1213 ,

I create a sample and it averages by name as expected.

vkalyjmsft_0-1665393931230.png

Do you have some difference with me?

 

I attach my sample below for your reference.

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-yanjiang-msft ,

I looked at your sample and i used the same expressions. However the table I am working on is summarized from two other tables. 

Forum.png

Here is the expression I used to summarize the columns. 

Forum1.png

And here is my expression for getting the average. 

 

 

Hi @wcd1213 ,

According to your snapshot, isn't 4.2857 the average of the name Will? If not, what the 4.2857 really is.

I recreate a sample like you, and it still get the correct result.

vkalyjmsft_0-1665481657927.png

vkalyjmsft_1-1665481670210.png

You can download my sample below to see the details.

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-yanjiang-msft 

4.2857 is the average of all of M1. I just realized my screenshot did not include the next name Joe. That average is the same:

QuestionForums.png

I need the averages to be split between names. 

 

Hi @wcd1213 ,

To veryfy the result, I calculate it manually.

For Will, sum is 90. The count of Will is 21, so the result of Will is correct(90/21=4.2857).

For Joe, sum is 60. The count of Will is 14, so the result of Will is correct(60/14=4.2857).

For Jim,  the snapshot data is incomplete, so I can't calculate it manually.

As of now, the result is the same for each name is just a coincidence.

 

Best Regards,
Community Support Team _ kalyj

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.