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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
Anonymous
Not applicable

filter column

Dear community, 
I calculate average per row via below formula, 
MeasureAvgY = CALCULATE(AVERAGE('wash'[Y]), ALLEXCEPT('Table', 'Table'[C], 'Table'[S], 'Table'[L]))
now it shows average value per column, 
How can I have just 1 column per row? I want to show average of each row in just one column at the end.
Thanks in advanc

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

Hello, @Helia9235

According to your description, I created data to reproduce your scenario. The pbix file is attached at the end.

Mesa:

b1.png

You can create a measure as follows.

Result = 
IF(
    ISINSCOPE('Table'[Category]),
    SUM('Table'[Y]),
    CALCULATE(
        AVERAGE('Table'[Y]),
        ALLEXCEPT('Table','Table'[Cluster],'Table'[Stain],'Table'[Determination Label])
    )
)

Result:

b2.pngb3.png

Best regards

Allan

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

View solution in original post

3 REPLIES 3
v-alq-msft
Community Support
Community Support

Hello, @Helia9235

According to your description, I created data to reproduce your scenario. The pbix file is attached at the end.

Mesa:

b1.png

You can create a measure as follows.

Result = 
IF(
    ISINSCOPE('Table'[Category]),
    SUM('Table'[Y]),
    CALCULATE(
        AVERAGE('Table'[Y]),
        ALLEXCEPT('Table','Table'[Cluster],'Table'[Stain],'Table'[Determination Label])
    )
)

Result:

b2.pngb3.png

Best regards

Allan

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

Anonymous
Not applicable

Thanks for your help @v-alq-msft , I have a another question, in this measure which you provided how can I also add STDV function? 

STDEV.S('Table'[Y])

I tried to add it next to AVERAGE but does not work.

amitchandak
Super User
Super User

@Anonymous ,  The information you have provided is not making the problem clear to me. Can you please explain with an example?

 

If you are using a matrix, remove columns from "Column"


Appreciate your Kudos.


Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

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.

Top Solution Authors