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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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