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

Multi step measure

I am attempting to write a measure and would appreciate assistance.

 

I have a table with columns for 

Submitted Date

Due Date

I have added a column with the measure written to determine if the items were submitted on time. 

ON TIME = IF(DATEVALUE([Date Submitted]) <= [Due Date], "On Time", "Late")
 
I also have columns for 

Number of Contacts Required

Number of Contacts Made

 

I am attempting to write a measure which will calculate the sum of Number of Contacts Made only if the item was on time.

Is there a way to do this?

Thanks 

2 ACCEPTED SOLUTIONS
johnt75
Super User
Super User

You can create a measure like

Contacts made on time =
CALCULATE (
    SUM ( 'Table'[Number of contacts made] ),
    'Table'[On time] = "on time"
)

View solution in original post

bhanu_gautam
Super User
Super User

@jeffr6596 Yes, you can achieve this by creating a measure that sums the "Number of Contacts Made" only for the items that were submitted on time

 

DAX
SumOfContactsMadeOnTime =
CALCULATE(
SUM('YourTable'[Number of Contacts Made]),
'YourTable'[ON TIME] = "On Time"
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

2 REPLIES 2
bhanu_gautam
Super User
Super User

@jeffr6596 Yes, you can achieve this by creating a measure that sums the "Number of Contacts Made" only for the items that were submitted on time

 

DAX
SumOfContactsMadeOnTime =
CALCULATE(
SUM('YourTable'[Number of Contacts Made]),
'YourTable'[ON TIME] = "On Time"
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






johnt75
Super User
Super User

You can create a measure like

Contacts made on time =
CALCULATE (
    SUM ( 'Table'[Number of contacts made] ),
    'Table'[On time] = "on time"
)

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.