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
sk5027383
Regular Visitor

Find different values from specific dates

Hi.

 

We try to sort a list of activities.

 

We have two different activities called " DOK§4-18 varsel" and "DOK §7-10 varsel".

 

These are two different letters sent out to our customers. The first letter sent out to a customer is "4-18", and some of these customers receive the "7-10" letter as well. If they receive the "7-10" letter, the letter has to be sent to the customer within a year of the date the "4-18" letter was sent.

 

Our question is, is it possible to sort the customers who have received the "7-10" letter after a year has passed? 

 

Underneath is an example of how our table looks, "utført dato" is the date the letter was sent. 

 

Skjermbilde.JPG

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

Hi @sk5027383,

 

I'd like to suggest you use activities name and sender id to find out records and stored in variable, then use minx and maxx functions with variable table to get first and last date.

Finally, you can simply use datediff to get diff from above result.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

Hi @sk5027383,

 

I'd like to suggest you use activities name and sender id to find out records and stored in variable, then use minx and maxx functions with variable table to get first and last date.

Finally, you can simply use datediff to get diff from above result.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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.