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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
LUM
Frequent Visitor

Wrong calculation

Hello,

 

I am trying to calculate and graph the total percentage of attention of my calls, when I am creating the graph, in values, ​​I place the formula and then in the x-axis, I place the date field of the calendar table that I create, data is calculated for the months following, this does not happen if I use the date field of the table where my data is, the problem is that I need to use the calendar table as a date filter.

 

In my tables, I only have information from January 2021 to March 2021 and the formula returns values ​​to December 2021, I have a column that tells me if the call was abandoned or not by assigning 1 and 0, I have another column that registers me If the call was answered or not with the same format 1 and 0, from this data create the following Dax formula:

 

Attention% =

Var Callsabn = Divide (Sum (Fact_Telefonia [Abandons]), Sum (Fac_Telefonia [Attended])) -> (get% of abandonment)

Return

(1-callsabn) -> get the reciprocal of the abandonment % that would be the % of attention

 

How can I fix my formula so that it does not calculate values ​​for the months where I have no information?

 

Dax.jpg

1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@LUM,

 

Try this measure:

 

Attention% = 
VAR Callsabn =
    DIVIDE ( SUM ( Fac_Telefonia[Long Abandons] ), SUM ( Fac_Telefonia[Queued] ) )
RETURN
    IF ( NOT ISBLANK ( Callsabn ), 1 - Callsabn )

 

Also, set the X axis to Categorical:

 

DataInsights_0-1618233497956.png

 





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

Proud to be a Super User!




View solution in original post

1 REPLY 1
DataInsights
Super User
Super User

@LUM,

 

Try this measure:

 

Attention% = 
VAR Callsabn =
    DIVIDE ( SUM ( Fac_Telefonia[Long Abandons] ), SUM ( Fac_Telefonia[Queued] ) )
RETURN
    IF ( NOT ISBLANK ( Callsabn ), 1 - Callsabn )

 

Also, set the X axis to Categorical:

 

DataInsights_0-1618233497956.png

 





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

Proud to be a Super User!




Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors