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
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
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.