Forum Discussion
measure with multiple conditions
hi all,
I have a table which looks like this
| Project No. | Phases | Estimated Start Date |
| 1 | a | 28/08/2020 |
| 1 | b | 28/11/2020 |
| 1 | c | 28/11/2020 |
| 1 | d | 28/01/2020 |
| 2 | a | 28/01/2019 |
| 2 | b | 28/08/2019 |
| 2 | c | 28/07/2020 |
| 2 | d | 28/12/2019 |
I have a drop down box which allows users to select any project and series of slicers to allow users to change the start date by months. I am trying to write a measure which can use the edate function and do the following
For the selected project:
calculate the revised start date for the relevant phase
For example:
if user selects Project B and want to move the start date 1 months forward
I want measure to calculate the revised start date to be "28/09/2019"
I can write the nested if condition to cover all the phases. At this stage I am struggling to refer the column in the reference based on two conditions (i.e. project no. and phases)
I hope this makes sense?
I tried the following but this gives me the max date
Any pointers will be greatly appreciated..
Shei
1 Reply
- lbendlin
Super User
Your sample data doesn't match your description. You say "Project B" but you use project numbers. Assume you meant "phase B" ?
How is the user selecting Phase B?
You can easily create a modeling experience using "What If" parameters. What you cannot do is expect any persistence. Meaning if you change the data for phase B of project 1 it will also change the date for phase B of project 2. Power BI has no memory. There are ideas to that effect but there is no roadmap.