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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
amirhabshush
New Member

DAX Average Excluding Zero-"The end of the input was reached"

Hello, 

im trying to use this formula-

 

Average of SD Covered = CALCULATE( AVERAGE('Table1 (2)'[SD Covered (m) [> 5.5(m/s)]]), FILTER('Table1 (2)', 'Table1 (2)'[SD Covered (m) [> 5.5(m/s)]])<> 0 ))
 

but for some reason the warning "The end of the input was reached" is shown.

 

Can someone please help?

thanks!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I took some dummy data and deduced the column name and table name from the dax you gave. As you can see, I get the correct result for the dummy data.

 

Aditya_Meshram_1-1629123407716.png

Regards,

Aditya

 

View solution in original post

8 REPLIES 8
Anonymous
Not applicable

Hi @amirhabshush 

 

You typed an extra bracket here. 

Aditya_Meshram_1-1629111519963.png

This error usually comes when you're missing a close parenthesis or you have too many, or some other punctuation mistake.

 

Regards,

Aditya

Thanks a lot for your answer Aditya @Anonymous ,

 

But unfortunately this bracket is a part of the value itself.

I still tried to do what you said but the following error occured:

 

The syntax for ')' is incorrect. (DAX(CALCULATE( AVERAGE('Table1 (2)'[SD Covered (m) [> 5.5(m/s)]), FILTER('Table1 (2)', 'Table1 (2)'[SD Covered (m) [> 5.5(m/s)])<> 0 )))).

Anonymous
Not applicable

I pointed at the round bracket, not the square bracket, what I meant is this :

 

Average of SD Covered = CALCULATE( AVERAGE('Table1 (2)'[SD Covered (m) [> 5.5(m/s)]]), FILTER('Table1 (2)', 'Table1 (2)'[SD Covered (m) [> 5.5(m/s)]]<> 0 ))

 

 Let me know if this gives the required result

hi again @Anonymous,

 

it still doesn't work

 

Average of SD Covered = CALCULATE( AVERAGE('Table1 (2)'[SD Covered (m) [> 5.5(m/s)]], FILTER('Table1 (2)', 'Table1 (2)'[SD Covered (m) [> 5.5(m/s)]]<> 0 )))
 
the last Parenthesis appear automatically once i click on the v.
Anonymous
Not applicable

I took some dummy data and deduced the column name and table name from the dax you gave. As you can see, I get the correct result for the dummy data.

 

Aditya_Meshram_1-1629123407716.png

Regards,

Aditya

 

Anonymous
Not applicable

Hi @amirhabshush, please try this, sorry for the inconvenience 

 

Average of SD Covered = CALCULATE( AVERAGE('Table1 (2)'[SD Covered (m) [> 5.5(m/s)]]]), FILTER('Table1 (2)', 'Table1 (2)'[SD Covered (m) [> 5.5(m/s)]]]<> 0 ))

 

 This seems to work in my system. It would be helpful if you could give some sample data with table name and column name. 

 

 

Hi @Anonymous it worked!

 

thank you very much for your kind help!

Anonymous
Not applicable

Hi @amirhabshush , you are welcome, I'm glad that it worked! It would mean a lot to me if you could accept my reply as a solution.

 

Regards,

Aditya

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors