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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
sd0021781
Regular Visitor

calculate average with filter

sd0021781_0-1725545017313.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @sd0021781 ,

 

I’ve made a test for your reference:

1\I assume there is a table

vbofengmsft_0-1725867246635.png

 

2\Add a measure

 

Average = AVERAGEX(
    FILTER(
        'Table',
        'Table'[Column1] <> "-"
    ),
    VALUE(SUBSTITUTE('Table'[Column1], "%", "")) / 100
)

 

3\Result

vbofengmsft_1-1725867246636.png

 

Best Regards,

Bof

 

 

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hi @sd0021781 ,

 

I’ve made a test for your reference:

1\I assume there is a table

vbofengmsft_0-1725867246635.png

 

2\Add a measure

 

Average = AVERAGEX(
    FILTER(
        'Table',
        'Table'[Column1] <> "-"
    ),
    VALUE(SUBSTITUTE('Table'[Column1], "%", "")) / 100
)

 

3\Result

vbofengmsft_1-1725867246636.png

 

Best Regards,

Bof

 

 

sd0021781
Regular Visitor

sd0021781_0-1725546765489.png

How to calculate average of the given numbers with (-) in some cells. I want to exclude (-) value while calculating

 

sd0021781
Regular Visitor

I have numbers in percentile and - in some filds. How to calculate the average excluding (-)? please help

Hi @sd0021781 - you average agent information measure should be this as below:

 

Average Without Dash1 =
CALCULATE(
    AVERAGEA('Averag'[Column1]),
    'Averag'[Column1] <> "-"
)
 

rajendraongole1_0-1725548725150.png

 

Hope it works.

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





I calculated as you said but the result shows '0'. Expectation is to exclude dash and calculate the average of remaining numbers like

-

100

100

100

0

-

100

50

-

0

100

 

Expected answers after ignoring dash should be (550/8)= 68.75

however i am getting 0 as an answer basis the calculation you have provided.

I appreciate your efforts and looking forward to your next reply

rajendraongole1
Super User
Super User

Hi @sd0021781 - Can you please add some more details about your query to answer quickly.

please follow the below link:

Re: How to Get Your Question Answered Quickly - Page 5 - Microsoft Fabric Community

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

Top Kudoed Authors