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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
JoshK
Frequent Visitor

Measure to count transactions between date fields

Hi

 

I need to create a new measure which can be used to show a count of business that has been cancelled before it has been taken up but after it as been agreed. I have the following fields which I need to use:

 

Policy Transaction Count (this will show a count of cancellations)

Accepted Date (this represents the date business was agreed)

Inception Date (this represents the date business was due to start)

 

I need the measure to show something like:

 

NTU = CALCULATE([POLICY_TRANSACTION_COUNT] IF IT OCCURS AFTER [ACCEPTED_DATE] AND PRIOR TO [INCEPTION DATE]

 

I keep finding that only one of the date fields will be displayed in the measure despite the fact they are contained in different tables...

 

Thanks in advance!

 

 

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@JoshK ,

 

You may take a look at the post below.

https://community.powerbi.com/t5/Desktop/Create-date-Parameter-asat-date-to-get-active-customers/m-p...

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-chuncz-msft
Community Support
Community Support

@JoshK ,

 

You may take a look at the post below.

https://community.powerbi.com/t5/Desktop/Create-date-Parameter-asat-date-to-get-active-customers/m-p...

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
JoshK
Frequent Visitor

I should also add that I am trying to create a measure which shows:

 

=CALCULATE([POLICY_TRANSACTION_COUNT], WHEN IT OCCURS WITHIN THE 14 DAYS AFTER [INCEPTION DATE]

 

AND ALSO

 

= CALCULATE([POLICY_TRANSACTION_COUNT], WHEN IT OCCURS AFTER 14 DAYS FROM [INCEPTION DATE]

Greg_Deckler
Super User
Super User


Take a look at these two Quick Measures as I think you want something like them.

https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/m-p/409364
https://community.powerbi.com/t5/Quick-Measures-Gallery/Periodic-Billing/m-p/409365


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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