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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
michael_knight
Post Prodigy
Post Prodigy

Display which attempt based on dates

Hi All,

 

I'm trying to display which attempt we're on in terms of booking people in for Initial calls. I've inputted a table below of what the expected resuls will be

MembershipCall DateCall TypeAttempt
000110/10/2021Initial1st Attempt
000115/11/2021Initial2nd Attempt
000120/12/2021Initial3rd Attempt
000201/09/2021Initial1st Attempt
000210/11/2021Review 
000309/09/2021Initial1st Attempt
000310/10/2021Initial2nd Attempt
000312/12/2021Review 
000415/08/2021Initial1st Attempt
000526/08/2021Initial1st Attempt

 

It's basically looking to see if there has been any initial calls after the 1st Attempt and then display which numbered attempt it is on

 

I'd like this to be a custom column in the table view so I'd be able to easily filter using a silcer etc

 

Does anyone know how I can do this?

 

Please let me know if you have any questions

 

Thanks,

Mike

1 ACCEPTED SOLUTION

@michael_knight , I do saw any first call in your result column

 

I think a new column like 

Var _1 = Countx(filter(table, [Membership] = earlier([Membership]) && [Call Type] <> "Call Type" && [Call Date] <= earlier([Call Date])), [Call Date])

return

if(_1 =1, "1st Call", (_1 -1) &  " Attempt" )

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@michael_knight , A new column like below will give you number

Countx(filter(table, [Membership] = earlier([Membership]) && [Call Type] <> "Call Type" && [Call Date] <= earlier([Call Date])), [Call Date])

 

You can convert 1 ->1st, 2-> 2nd

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak, thanks for the reply. I tested that measure and it looks like it only counts the number of times a call has been attempted to be booked in. I'm looking at going into more details, for example if the call is the 1st call then return 1st Attempt, if it's the 2nd call then display 2nd Attempt and so on

 

Does that make sense?

@michael_knight , I do saw any first call in your result column

 

I think a new column like 

Var _1 = Countx(filter(table, [Membership] = earlier([Membership]) && [Call Type] <> "Call Type" && [Call Date] <= earlier([Call Date])), [Call Date])

return

if(_1 =1, "1st Call", (_1 -1) &  " Attempt" )

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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