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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ChoiJunghoon
Helper III
Helper III

[DAX] How to remove the specific value when i use average?

Untitled.png

I want to create the "Average Table " with DAX. 

how to write the DAX ?? 

 

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

Hi @ChoiJunghoon ,

 

Please create measures like below:

SUM_VALUE = CALCULATE(SUM('Table'[Value]),ALLEXCEPT('Table','Table'[ID]))
AVG = 
var t = FILTER(ALL('Table'[ID]),[SUM_VALUE]>=100)
return
AVERAGEX(t,CALCULATE(SUM('Table'[Value])))

 1.PNG

 

Best Regards,
Xue Ding
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

2 REPLIES 2
v-xuding-msft
Community Support
Community Support

Hi @ChoiJunghoon ,

 

Please create measures like below:

SUM_VALUE = CALCULATE(SUM('Table'[Value]),ALLEXCEPT('Table','Table'[ID]))
AVG = 
var t = FILTER(ALL('Table'[ID]),[SUM_VALUE]>=100)
return
AVERAGEX(t,CALCULATE(SUM('Table'[Value])))

 1.PNG

 

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
Super User

@ChoiJunghoon ,

Try a new table

filter(Summarize(Table, Table[ID],"Sum",sum(Table[Value]) ,"Avg" , Average(Table[Value])),[Sum]>=100)

 

New Column

AverageX(filter(Summarize(Table, Table[ID],"Sum",sum(Table[Value]) ,"Avg" , Average(Table[Value])),[Sum]>=100),[Avg])

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.