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 August 31st. Request your voucher.

Reply
Pmrs
Regular Visitor

Need help on dax measure

Hi Team,

Good day,

I need dax measure for Totalexceededcalls 

Totalexceededcalls=anycall made morethan total target calls

 

Thanks in advance

 

Screenshot_20250627_212944_Excel.jpg

1 ACCEPTED SOLUTION

Hi @FBergamaschi ,

Updated the dax as per the requirement

TotalExceededCalls = 
SUMX (
    ADDCOLUMNS (
        VALUES ( Target[rep] ),
        "ExceededFlag",
            IF (
                CALCULATE(SUM(Target[Total calls])) > CALCULATE(SUM(Target[Totaltarget])),
                CALCULATE(SUM(Target[Total calls])) - CALCULATE(SUM(Target[Totaltarget])),
                0
            )
    ),
    [ExceededFlag]
)



here is the corrected output

vnmadadimsft_0-1751394186213.png




If this post helps, then please consider Accepting as solution to help the other members find it more quickly and consider giving a KUDOS. Feel free to reach out if you need further assistance.
Thank you

 

View solution in original post

8 REPLIES 8
v-nmadadi-msft
Community Support
Community Support

Hi @Pmrs 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided by the community members for the issue worked. Please do let us know if you have any further queries.

Thanks and regards

v-nmadadi-msft
Community Support
Community Support

Hi @Pmrs ,

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.
Thank you.

v-nmadadi-msft
Community Support
Community Support

Hi @Pmrs 

May I ask if you have resolved this issue? If not, Please feel free to contact us if you have any further questions.

Thank you.

 

v-nmadadi-msft
Community Support
Community Support

Hi  @Pmrs ,
Thanks for reaching out to the Microsoft fabric community forum.

I have used this DAX formula to generate TotalExceededCalls

TotalExceededCalls =

SUMX (

    ADDCOLUMNS (

        VALUES ( Target[rep] ),

        "ExceededFlag",

            IF (

                CALCULATE(SUM(Target[Total calls])) > CALCULATE(SUM(Target[Totaltarget])),

                1,

                0

            )

    ),

    [ExceededFlag]

)




This is the generated output:

vnmadadimsft_0-1751268716370.png

 


Uploaded the .PBIX file for reference as well.

If this post helps, then please consider Accepting as solution to help the other members find it more quickly and consider giving a KUDOS. Feel free to reach out if you need further assistance.
Thank you

Hi 

Thank you for your response.

The output should be total exceeded calls. If a rep exceeds total target calls ex: target call is 100

And a rep exceeds 3 calls then the output should be 103 not as a flag 0 or 1. Could you please help on this

Hi @FBergamaschi ,

Updated the dax as per the requirement

TotalExceededCalls = 
SUMX (
    ADDCOLUMNS (
        VALUES ( Target[rep] ),
        "ExceededFlag",
            IF (
                CALCULATE(SUM(Target[Total calls])) > CALCULATE(SUM(Target[Totaltarget])),
                CALCULATE(SUM(Target[Total calls])) - CALCULATE(SUM(Target[Totaltarget])),
                0
            )
    ),
    [ExceededFlag]
)



here is the corrected output

vnmadadimsft_0-1751394186213.png




If this post helps, then please consider Accepting as solution to help the other members find it more quickly and consider giving a KUDOS. Feel free to reach out if you need further assistance.
Thank you

 

Hi Pmrs

please can you clarify if you need a measure or a calculated column?

 

As a measure

 

SUMX (
              Table,
               IF ( 
                       Table[TotalCalls] > Table[TargetCalls],
                        Table[TotalCalls] - Table[TargetCalls]
                )
)

 

as a column

 

IF ( 
                       Table[TotalCalls] > Table[TargetCalls],
                        Table[TotalCalls] - Table[TargetCalls]
                )

 

If this helped, please consider giving kudos and mark as a solution

@me in replies or I'll lose your thread

consider voting this Power BI idea

Francesco Bergamaschi

MBA, M.Eng, M.Econ, Professor of BI

Greg_Deckler
Community Champion
Community Champion

@Pmrs As a calculated column this would be:

Column = MAX( [Totaltargetcalls] - [Total calls], 0 )


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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