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
miltenburger
Helper V
Helper V

Datediff on unique CaseID with two different actions

Hi Guys,

 

I'm sturggling a bit on a calculated column which gives me the datediff.

My Table has been set up like this:

Datediff.png

 

 

 

 

 

 

What I want to achieve is the datediff on a CaseID between "vraagverheldering" and "Besluit".

But I just don't no how to do it because the information is in the same table but on different rows in my table.

 

Thanks in advance guys

1 ACCEPTED SOLUTION

you can use if function bro. Example:Screen Shot 2018-04-26 at 7.23.48 PM.png

View solution in original post

5 REPLIES 5
sontt
Resolver I
Resolver I

You can try:

 

Datedif = Calculate(max([Date]),filter(table,table[Caseid] = earlier([Caseid]) && table[Action] <> earlier(table[action]))- [date]

Thanks @sontt for your reply.

But this doesn't seems to work....

Screen Shot 2018-04-26 at 7.00.17 PM.png

I tried this in my power pivot, it still work bro.

Yeah is see,

 

the only problem is, my action column has 100 different notations, i only want the "verheldering" and "besluit"

you can use if function bro. Example:Screen Shot 2018-04-26 at 7.23.48 PM.png

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.