Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi All,
I am using data from Primavera P6, copied into Excel, and then used in Power BI. My portfolio of projects is approximately 300 different projects. Each one has 10 of the same milestones. I have added a new column that identifies each of the milestones, now I need to have the dates for each one.
Each activity is it's own row. In the row, I have the activity ID, Start, Finish, and the identifier for the milestone. What I want is when "Milestone X = 1" for Power BI to return the date from the "Finish" column.
To identify the milestone type I have:
To get the date I have tried:
Any help will be appreciated! Thanks 🙂
Are your dates stored as dates in power query?
If not add or replace your current date column as Date.FromText(<date column>, "dd/mm/yyyy")
Your Dax measure perhaps wont work if you are mixing string with dates.
Try
if('Activities'[Activity Name] = "Project Brief Accepted", 'Activities'[Finish Date], BLANK())
Thanks for the suggestion, I did try that and just get #ERROR
@MartinC Can you provide sample data? Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882
Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.
Hi Greg,
The data is commercially sensitive so I can't share too much sadly 😞
Let's say I have 3 activities (rows) which have columns for "Activity ID", "Activity Name", "Start", "Finish", "Milestone 1", "Milestone 2" and "Milestone 3".
Each row will only have a value in either "Milestone 1" 2 or 3. The result I need in a new column is the finish date from "Finish" when either Milestone 1, 2 or 3 have a value.
I hope that helps?
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 54 | |
| 47 | |
| 39 | |
| 16 | |
| 15 |
| User | Count |
|---|---|
| 83 | |
| 71 | |
| 39 | |
| 29 | |
| 27 |