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
Anonymous
Not applicable

Average excluding zero by item

need help with DAX and Filters... i think.  My current formula is calculating on the entire table... i need it by row,

 

TGM_0-1660841233461.png

 

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@Anonymous You might try AVERAGEX(FILTER(ALLEXCEPT(...),[Daily Average]<>0),[Daily Average])


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

4 REPLIES 4
Greg_Deckler
Super User
Super User

@Anonymous You might try AVERAGEX(FILTER(ALLEXCEPT(...),[Daily Average]<>0),[Daily Average])


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Nope... i probably have the syntax wrong

Anonymous
Not applicable

it is not iterating per row?

TGM_0-1660848279150.png

 

 

Anonymous
Not applicable

it helps if i have the right relationship set up!

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.