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 September 15. Request your voucher.

Reply
Krishna_Newuser
Resolver I
Resolver I

Count the Over all Data, Success and Failure in Column Chart

Hello,
Good day!!!

Need help to give the output in the below format using the below tables using DAX and in Column Chart. Tried to take the data but its not showing as I could see discrepancies.  I will put the TxnDt, Day in  X Axis and other columns from the WT table into Y Axis. Using the Select Store Table to filter all the stores from filter All Pages.

Used the below filter function but showing the count in Success and Abandoned as well.

FYI:  Same Conversation ID we have two row one is “Success” and another one is “Failure”.

Below DAX used but not working.
Check out = CALCULATE(COUNTROWS('WalkieTalkieUsage (2)'), 'WalkieTalkieUsage (2)'[ ClientCallStatus] = "Failure")

Data Check = CALCULATE(COUNT('WalkieTalkieUsage (2)'[ ClientCallStatus]), 'WalkieTalkieUsage (2)'[ ClientCallStatus] = "Failure")

 

Expected Output:

Krishna_Newuser_0-1733141226736.png

 


Date Table:

TxnDt

Day

Date4

17-Nov-24

Sun

[7] - Sun 17.011.2024

18-Nov-24

Mon

[1] - Mon 18.011.2024

19-Nov-24

Tue

[2] - Tue 19.011.2024

20-Nov-24

Wed

[3] - Wed 20.011.2024

21-Nov-24

Thu

[4] - Thu 21.011.2024

22-Nov-24

Fri

[5] - Fri 22.011.2024

23-Nov-24

Sat

[6] - Sat 23.011.2024

 

Select Store:

StoreName

StoreNo

London Colney

4734

Salisbury

1931

Cheshunt

97

Leeds White Rose

1668

Plymouth

2671

 

WT Usage Table:

 

ConversationIdTxnDtStoreNameStoreNo ClientCallStatus
ABCDSunday, November 17, 2024London Colney4734SUCCESS
ABCDSunday, November 17, 2024London Colney4734FAILURE
JJKLSunday, November 17, 2024London Colney4734SUCCESS
NJHJSunday, November 17, 2024Stevenage Retail Park1603ABANDONED
CCHQSunday, November 17, 2024Stevenage Retail Park1603ABANDONED
FURTHSunday, November 17, 2024Stevenage Retail Park1603ABANDONED
FURTHSunday, November 17, 2024Stevenage Retail Park1603SUCCESS
HJUKSunday, November 17, 2024Stevenage Retail Park1603ABANDONED
QTHSunday, November 17, 2024Stevenage Retail Park1603ABANDONED
KJLSunday, November 17, 2024Stevenage Retail Park1603FAILURE
PQERSunday, November 17, 2024Stevenage Retail Park1603FAILURE
YHJSunday, November 17, 2024Stevenage Retail Park1603FAILURE
YHJSunday, November 17, 2024Stevenage Retail Park1603SUCCESS
ABCDSunday, November 17, 2024Stevenage Retail Park1603FAILURE
ABCDMonday, November 18, 2024Salisbury1931ABANDONED
NNMNMonday, November 18, 2024Salisbury1931FAILURE
JKLMMonday, November 18, 2024Salisbury1931FAILURE
TYPLMonday, November 18, 2024Salisbury1931FAILURE
GGDFTuesday, November 19, 2024Cheshunt97ABANDONED
HHTuesday, November 19, 2024Cheshunt97ABANDONED
NNMNTuesday, November 19, 2024Shrewsbury262FAILURE
NNMNTuesday, November 19, 2024Shrewsbury262SUCCESS
HARTuesday, November 19, 2024Leeds White Rose1668SUCCESS
FQRSTuesday, November 19, 2024Leeds White Rose1668FAILURE
FQRSTuesday, November 19, 2024Leeds White Rose1668ABANDONED
QTPWednesday, November 20, 2024Plymouth2671SUCCESS
FPWednesday, November 20, 2024Plymouth2671FAILURE
KKMWednesday, November 20, 2024Plymouth2671ABANDONED
SSMSWednesday, November 20, 2024Plymouth2671ABANDONED
HHMThursday, November 21, 2024Plymouth2671 
FFMPThursday, November 21, 2024Plymouth2671SUCCESS
TTNTThursday, November 21, 2024Plymouth2671FAILURE
HHMTThursday, November 21, 2024Plymouth2671ABANDONED
YUPFriday, November 22, 2024Tamworth2794FAILURE
YUPFriday, November 22, 2024Tamworth2794ABANDONED
YUPSaturday, November 23, 2024Stevenage Retail Park1603SUCCESS
NGKSaturday, November 23, 2024Stevenage Retail Park1603ABANDONED
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,@Krishna_Newuser .I am glad to help you.

Like this?
I calculate the number of Failure,Success,Abandoned calls per day for all data and I also calculate the total number of calls per day.

On the right is the percentage of each type of calls to the total number of calls recorded per day.

 

 

DIVIDE([DailyCallsKinds],[DailyCallsAll],0) 

 

 

vjtianmsft_6-1733194556552.png

 

I noticed that there are call records with a status of BLANK in the test data you gave. If this is present in your data, then calculating the total number of calls per day is necessary. (Check if there are records with status =blank)

vjtianmsft_1-1733193860918.png

This is the measures I create:

 

 

M_totalAll = COUNTROWS('WT Usage Table')


M_TotalFailure = CALCULATE(COUNTROWS('WT Usage Table'),FILTER('WT Usage Table','WT Usage Table'[ClientCallStatus] = "FAILURE"))


M_TotalSuccess = CALCULATE(COUNTROWS('WT Usage Table'),FILTER('WT Usage Table','WT Usage Table'[ClientCallStatus] = "SUCCESS"))


M_TotalAbandoned = CALCULATE(COUNTROWS('WT Usage Table'),FILTER('WT Usage Table','WT Usage Table'[ClientCallStatus]= "ABANDONED"))

 

 


Measures to calculate the percentage:

 

 

M_TotalFailurePercent = DIVIDE([M_TotalFailure],[M_totalAll],0) 


M_TotalSuccessPercent = DIVIDE([M_TotalSuccess] ,[M_totalAll],0)


M_TotalAbandonedPercent = DIVIDE([M_TotalAbandoned],[M_totalAll],0) 

 

 

If you want to show the specific values of the data in visual, I recommend you to turn on the following options to make it easier for you to analyse the data.

vjtianmsft_2-1733193970737.png

vjtianmsft_3-1733193977875.png

vjtianmsft_4-1733193996759.png

I hope my suggestions can bring you help. If there is any error in my understanding, please correct me promptly and provide more detailed data and expected results (including the establishment of relationships between tables in the model, judgement logic of calculations, etc.).
If possible, please provide a test file of pbix that does not contain sensitive data and share it on the forum via github link. This will help to solve your problem.

The Data Model relationship.

vjtianmsft_5-1733194142434.png


I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Carson Jian,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi,@Krishna_Newuser .I am glad to help you.

Like this?
I calculate the number of Failure,Success,Abandoned calls per day for all data and I also calculate the total number of calls per day.

On the right is the percentage of each type of calls to the total number of calls recorded per day.

 

 

DIVIDE([DailyCallsKinds],[DailyCallsAll],0) 

 

 

vjtianmsft_6-1733194556552.png

 

I noticed that there are call records with a status of BLANK in the test data you gave. If this is present in your data, then calculating the total number of calls per day is necessary. (Check if there are records with status =blank)

vjtianmsft_1-1733193860918.png

This is the measures I create:

 

 

M_totalAll = COUNTROWS('WT Usage Table')


M_TotalFailure = CALCULATE(COUNTROWS('WT Usage Table'),FILTER('WT Usage Table','WT Usage Table'[ClientCallStatus] = "FAILURE"))


M_TotalSuccess = CALCULATE(COUNTROWS('WT Usage Table'),FILTER('WT Usage Table','WT Usage Table'[ClientCallStatus] = "SUCCESS"))


M_TotalAbandoned = CALCULATE(COUNTROWS('WT Usage Table'),FILTER('WT Usage Table','WT Usage Table'[ClientCallStatus]= "ABANDONED"))

 

 


Measures to calculate the percentage:

 

 

M_TotalFailurePercent = DIVIDE([M_TotalFailure],[M_totalAll],0) 


M_TotalSuccessPercent = DIVIDE([M_TotalSuccess] ,[M_totalAll],0)


M_TotalAbandonedPercent = DIVIDE([M_TotalAbandoned],[M_totalAll],0) 

 

 

If you want to show the specific values of the data in visual, I recommend you to turn on the following options to make it easier for you to analyse the data.

vjtianmsft_2-1733193970737.png

vjtianmsft_3-1733193977875.png

vjtianmsft_4-1733193996759.png

I hope my suggestions can bring you help. If there is any error in my understanding, please correct me promptly and provide more detailed data and expected results (including the establishment of relationships between tables in the model, judgement logic of calculations, etc.).
If possible, please provide a test file of pbix that does not contain sensitive data and share it on the forum via github link. This will help to solve your problem.

The Data Model relationship.

vjtianmsft_5-1733194142434.png


I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Carson Jian,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

This helps, Thank you so much

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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