This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA 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.
Hi Community,
the following table shows mky exemplary data.
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.
it is possible to calculate such a thing in Dax
Hi @Anonymous ,
Did the above solution solve your problem?
Best Regards,
Jay
Hi @Anonymous ,
I would do some transformations in Power query and then add two calculated measures:
Pwer Query:
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.
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
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsSign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 33 | |
| 26 | |
| 21 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 63 | |
| 44 | |
| 28 | |
| 24 | |
| 22 |