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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Anonymous
Not applicable

Milestone

Hi Community,

 

the following table shows mky exemplary data.

 
 

1.jpg

 

I want to use the Milestone_Planned Start and Milestone_Planned End data to calculate my current milestone.

 

The following table shows the logic based on the data.
A milestone is considered to have been reached when the end date is entered.

2.jpg

it is possible to calculate such a thing in Dax

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

Did the above solution solve your problem?

 

Best Regards,

Jay

MFelix
Super User
Super User

Hi @Anonymous ,

 

I would do some transformations in Power query and then add two calculated measures:

 

Pwer Query:

  • Select the column project and other that are needed and Unpivoted other columns
  • Get two columns Attibute (Milestone Star end) and Value (Dates)
  • Split column Attribute by delimeter
  • You will get two new column Attribute1 (Milestone) Attibute 2 (Start End)
  • Pivot column Attribute2 with the values of the dates
  • Rename columns
  • Result below:

 

MFelix_0-1601391024362.png

Add the following measures:

Next Milestone =
VAR temp_table =
    FILTER (
        SUMMARIZE ( 'Table'; 'Table'[Project]; 'Table'[Milestone]; 'Table'[End] );
        'Table'[End] = BLANK ()
    )
RETURN
    MINX ( temp_table; 'Table'[Milestone] )


Milestone current =
VAR temp_table =
    FILTER (
        SUMMARIZE ( 'Table'; 'Table'[Project]; 'Table'[Milestone]; 'Table'[End] );
        'Table'[End] <> BLANK ()
    )
RETURN
    MAXX ( temp_table; 'Table'[Milestone] )

 

final result below and in attach PBIX file.

MFelix_1-1601391134746.png

Be aware that I'm assuming that your milestone are somehow identified as 1, 2, 3 if not you need to have some whay of sorting them in your model.

 


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português





Helpful resources

Announcements
Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.