cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Super User III
Super User III

Re: Event In Progress for multi-stage process

Hi @addaline,

 

First of all let me apoligize for just replying today, but busy week.

 

I think I have made a setup that you can use please try it and then tell me what are the questions that arrive with you setup and the calculation needed to be adjusted.

 

Create 3 Columns:

All_Approvall_Dates = IF(
			FORMAT( 'Internet Sales'[Approved Date];"mm-yyyy")=FORMAT('Internet Sales'[Ready For Scheduling Date];"mm-yyyy") && 
                        FORMAT('Internet Sales'[Approved Date];"mm-yyyy")=FORMAT('Internet Sales'[Scheduled Date];"mm-yyyy");
                       TRUE();
                       FALSE()
                       ) 

Approval_2_Dates = IF(
FORMAT( 'Internet Sales'[Approved Date];"mm-yyyy")=FORMAT('Internet Sales'[Ready For Scheduling Date];"mm-yyyy");
TRUE();
FALSE()
)

Approval_Date = SWITCH(
TRUE();
'Internet Sales'[Approval_2_Dates]='Internet Sales'[All_Approvall_Dates];
'Internet Sales'[Scheduled Date];
'Internet Sales'[All_Approvall_Dates]=FALSE();
'Internet Sales'[Ready For Scheduling Date];
'Internet Sales'[Approved Date]
)

 

With this columns I'm testing if all of the dates are equal and returning the final date (if there as to be any changes in this probably it will have to do with the last column I present.

 

Them create the non active relationship between the date calendar and the Approval_Date column

 

Create the following measures and add them to your visuals:

Completed = CALCULATE (
               DISTINCTCOUNT('Internet Sales'[Estimate Number]);
               USERELATIONSHIP('Date'[Date];'Internet Sales'[Completed Date]) )

Sent_To_Customer = CALCULATE (
               DISTINCTCOUNT('Internet Sales'[Estimate Number]);
               USERELATIONSHIP('Date'[Date];'Internet Sales'[Sent To Customer Date])  )

Approved = CALCULATE (
               DISTINCTCOUNT('Internet Sales'[Estimate Number]);
               USERELATIONSHIP('Date'[Date];'Internet Sales'[Approval_Date]) )

 I admit this is a little mesy in terms of final result, I'm still trying to see how I can calculate the approved date amog the tree dates you have, please test it and tell me what you think.

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

Check out my blog: Power BI em Português


Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Join THE global Microsoft Power Platform event series.

Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors