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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

How to get the average through different table

Hi,

 

I'm sorry for bothering but I really want to ask the question. What to do if I want to get the average score for the below attribute while ignoring the blank value. As I a begginer what I do to get the bar chart is I sum all the value for the attribute like this and make the average for the value like this in the image below. But when I doing it like this it does not ignore the blank value when I doing the average because all the CP is from the different table. What I should do gurus to make it ignore the blank value by filter it by region and month.

 

iena_1-1647916650647.png

iena_2-1647916705460.png

 

iena_4-1647916944100.png

 

 

Example is like this. It still divide by 9 even other value is 0.

iena_3-1647916834317.png

 

Thank you so much in advance for the help given.

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I already found the solution for this.

Average for Customer Promise =
VAR Count_ =
INT ( Table 1<> BLANK () )
+ INT ( Table 2 <> BLANK () )
+ INT ( Table 3 <> BLANK () )
 
RETURN
DIVIDE ( Table 1+ Table 2 + Table 3, Count_ )

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

I already found the solution for this.

Average for Customer Promise =
VAR Count_ =
INT ( Table 1<> BLANK () )
+ INT ( Table 2 <> BLANK () )
+ INT ( Table 3 <> BLANK () )
 
RETURN
DIVIDE ( Table 1+ Table 2 + Table 3, Count_ )
amitchandak
Super User
Super User

@Anonymous ,

Averagex(Values(Table[Customer]),[Sum of CP])

Anonymous
Not applicable

Hi @amitchandak , I've try the method you give but it doesn't work as the table for customer is the combination of my sheet in the field. so when i try it it turn on error. because i dont have one table for all the customer value. 

iena_0-1647919042291.png

 

 

@Anonymous , in Values you need to give group by or the not summarized column of visual and that should close by )  like customer

Anonymous
Not applicable

I try to group the measures into one table like the image below but when I insert the the formula for the averagex it still error.

iena_0-1647923672070.png

it stated that the group does not have the column why it happen like that?

iena_1-1647923776039.png

iena_2-1647923851460.png

 

 

@Anonymous , is the Sum of CP is measure?  Also, you can not use values on a table in this case , you need to give a column

Anonymous
Not applicable

yes the sum of cp is the measure where i sum all the 9 percentage in the table so that I can divide by 9 but the disadvantage that happen is it ignore all the blank value as it divide all the value by 9 eventhough there is table that have less than 9 values as there is blank value in it.

iena_0-1647931199887.png

 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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