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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
jeevan_mehra
Regular Visitor

Percentage calculation

Hi,

 

I have half hourly intervalwise raw data available on which when I use pivot in excel and get #DIV error, I replace those with '0' which make my pivot look presentable. However, when I use the same data in power BI and add a new column as abandoned % in data view where i use total abandoned/total calls offered and add that formulated column in visuals, I get the error as "NaN". Now, I am not able to replace this with '0'. My question is, how do I do that? 

 

Looking for instant help..thanks

12 REPLIES 12
Anonymous
Not applicable

Hi @jeevan_mehra,

 

Can you provide the measure formulas which you mentioned? I'm not very clear these formula.

 

Regards,

Xiaoxin Sheng

Hi,

 

For calculating SL% I have used measure - DIVIDE (calls answered in 20 sec, net calls offered(Total calls offered-calls aban in 10 sec))

For calculating Aban% I have used measure - DIVIDE (total calls abandoned, total calls offered)

Sean
Community Champion
Community Champion

Thanks sean for your help. But, still not able to get the perfect result. Actually, I am calculating SL%, Aban% and Ans% based on the raw data. However, the result varies big time in power bi as compared to excel. For eg. SL% for 1st day of the month in excel comes to 89.3% and comes as 97.44% in power bi. Not sure, what to do next??

Anonymous
Not applicable

Hi @jeevan_mehra,

 

Can you please share some detail content of your issue? It is hard to reproduce your issue from your description.

 

Regards,

Xiaoxin Sheng

Hi,

 

I am not sure how to attach my data here. Can you guide me on that?

Anonymous
Not applicable

Hi @jeevan_mehra,

 

You can upload to your file to 1dv and share the link here.

 

Regards,

XIaoxin Sheng

Hi,

 

I am actually new to this environment. Can you explain me what 1dv is?

Anonymous
Not applicable

Hi @jeevan_mehra,

 

1dv means the "Microsoft OneDrive".

 

Regards,

Xiaoxin Sheng

Hi,

 

I am not able to connect to Microsoft OneDrive as of now. However, I am pasting my data below. Let me know if it helps..

 

 

DateTimeTotal Calls OfferedTotal Calls AnsweredCalls Answered After 20 SecCalls Answered within 20 SecAbandoned CallsAbandoned <10 SecSpeedOfAnswerTalk_timeACW_TimeHold_timeHandled callsLOB
01-Feb-170:0000000000000Prepaid 12345 Gold
01-Feb-170:3000000000000Prepaid 12345 Gold
01-Feb-171:0000000000000Prepaid 12345 Gold
01-Feb-171:3000000000000Prepaid 12345 Gold
01-Feb-172:0000000000000Prepaid 12345 Gold
01-Feb-172:3000000000000Prepaid 12345 Gold
01-Feb-173:0000000000000Prepaid 12345 Gold
01-Feb-173:3000000000000Prepaid 12345 Gold
01-Feb-174:0000000000000Prepaid 12345 Gold
01-Feb-174:301101003199301Prepaid 12345 Gold
01-Feb-175:0000000000000Prepaid 12345 Gold
01-Feb-175:3000000000000Prepaid 12345 Gold
01-Feb-176:0000000000000Prepaid 12345 Gold
01-Feb-176:3011010040000Prepaid 12345 Gold
01-Feb-177:000000000324701Prepaid 12345 Gold
01-Feb-177:30221100372601002Prepaid 12345 Gold
01-Feb-178:002202008153701Prepaid 12345 Gold
01-Feb-178:30110100070510412Prepaid 12345 Gold
01-Feb-179:00110100487701Prepaid 12345 Gold
01-Feb-179:305514004758023335Prepaid 12345 Gold
01-Feb-1710:00110100451301Prepaid 12345 Gold
01-Feb-1710:3000000000000Prepaid 12345 Gold
01-Feb-1711:0011010021131701Prepaid 12345 Gold
01-Feb-1711:301010010003076954010Prepaid 12345 Gold
01-Feb-1712:00880800271834008Prepaid 12345 Gold
01-Feb-1712:30110100485701Prepaid 12345 Gold
01-Feb-1713:0000000000000Prepaid 12345 Gold
01-Feb-1713:30330300451717463Prepaid 12345 Gold
01-Feb-1714:0033030085471703Prepaid 12345 Gold
01-Feb-1714:3022020083001002Prepaid 12345 Gold
01-Feb-1715:0000000000000Prepaid 12345 Gold
01-Feb-1715:3011010032463621Prepaid 12345 Gold
01-Feb-1716:001101001100301Prepaid 12345 Gold
01-Feb-1716:3000000000000Prepaid 12345 Gold
01-Feb-1717:003202106280301Prepaid 12345 Gold
01-Feb-1717:300000000107301Prepaid 12345 Gold
01-Feb-1718:002202008258602Prepaid 12345 Gold
01-Feb-1718:3000000000000Prepaid 12345 Gold
01-Feb-1719:007716004412821505Prepaid 12345 Gold
01-Feb-1719:305505001112622107Prepaid 12345 Gold
01-Feb-1720:00110100478301Prepaid 12345 Gold
01-Feb-1720:3000000000000Prepaid 12345 Gold
01-Feb-1721:00331200381003903Prepaid 12345 Gold
01-Feb-1721:3000000000000Prepaid 12345 Gold
01-Feb-1722:0000000000000Prepaid 12345 Gold
01-Feb-1722:3000000000000Prepaid 12345 Gold
01-Feb-1723:0000000000000Prepaid 12345 Gold
01-Feb-1723:302110107660301Prepaid 12345 Gold

Hi jeevan_mehra,
Before you can use your data you have to prepare it and put it in a datamodel with calendar table.
I would before starting to calculate, add an index column as a primary key and afterwards unpivot all columns except index, date, time and the one with prepaid gold in.
Afterwards you can create measures using this data. If you don't know how to start, I would suggest you take the edx powerbi course which is great introduction to the tool and it does a great job explaining the tool
jeevan_mehra
Regular Visitor

Hi,

 

I have a table with complete month data and it has some columns like total calls offered, answered, abandoned etc. Now, if I am trying to add a column like aban% where I am dividing abandoned by offered and trying to reflect it in my chart I am not getting the result which I am expecting, like it is giving me infinity error for some dates under the aban% column. Now, my main concern is how do I get rid of it. I know I can do this in excel but not sure how to do it in power bi. So, I am really looking for some help here...

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.