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
Salman_99
Frequent Visitor

Average formula

Hi Team,

 

I have 3 tables Call, Chat and Email and in that i have a column name Overall Score in Average.

I'm trying to use this formula to calculate overall Average score but it is showing me incorrectly.

 

Could some help me

 

Colum name 

Overall Score

76%

85%

 

NewTable = UNION(SELECTCOLUMNS('Call',"Overall Score",'Call'[Overall score]),SELECTCOLUMNS(Email,"Overall Score",Email[Overall score]),SELECTCOLUMNS('Chat',"Overall",'Chat'[Overall score]))
2 REPLIES 2
v-jiewu-msft
Community Support
Community Support

Hi @Salman_99 ,

If I understand correctly, the issue is that you want to use the formula to calculate overall average score. Please try the following methods and check if they can solve your problem:

1.Create the simple Call, Chat, Email table.

vjiewumsft_0-1703055095135.png

vjiewumsft_1-1703055101111.png

vjiewumsft_3-1703055125420.png

2.Click on Modeling in the top menu, then click on New table.

vjiewumsft_4-1703055148382.png

 

3.Create a new table with unified Overall Score column. Enter the following DAX formula.

 

NewTable =
UNION (
    SELECTCOLUMNS ( 'Call', "Overall Score", 'Call'[Overall Score] ),
    SELECTCOLUMNS ( 'Email', "Overall Score", 'Email'[Overall Score] ),
    SELECTCOLUMNS ( 'Chat', "Overall Score", 'Chat'[Overall Score] )
)

 

4.Create a measure to calculate the average of the Overall Score from the new table. Enter the following DAX formula.

 

AverageOverallScore =
AVERAGE ( NewTable[Overall Score] )

 

5.Move the Average Overall Score to the card visual.

vjiewumsft_5-1703055321901.png

If the above ones can’t help you get it working, could you please provide more raw data(exclude sensitive data) with Text format to make a deep troubleshooting? It would be helpful to find out the solution.

 

Looking forward to your replay.

Best Regards,

W

 

 

 

 

Salman_99_0-1703062746232.png

 

Salman_99_1-1703062766938.pngSalman_99_2-1703062786409.png

 

Call Table , Chat Table & Email table have column Overall score in %.

Weekly Wise Overall score

Week 191.41%

Helpful resources

Announcements
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.