Forum Discussion
fa5fou5
7 years agoRegular Visitor
How to create a Custom Column or New Table based with multiple Column condition
Hi, Suppose I am having such Table, How Can I Create a custom column called <Actual Milestone> that calculate the actual milestone based on the earliest date with is in this case 16-Apr-19 P...
- Anonymous7 years ago
Hi buddy,
well, this is happening because you have one date being repeted, so you need something like "index column".
I create one column called "KEY" it would serve to resolve your problem, here goes the steps.
i recreate the table, now only using the summerize for column "Project":
Table = SUMMARIZE(Table1;Table1[Project])Create those 2 columns:last date = CALCULATE(LASTDATE(Table1[Date]);FILTER(Table1;Table1[Project]='Table'[Project]))Key = CONCATENATE('Table'[Project];'Table'[last date])Create on the original table this column to be referenced:Key = CONCATENATE(Table1[Project];Table1[Date])Those "key" columns you can "hide in the report view" so do impact happens.Now you can access the Name column, like this:Column = LOOKUPVALUE(Table1[Name];Table1[Key];'Table'[Key])This should do the trick,Also, sorry my bad english, it's not my native language.Any questions, ask ;)
Anonymous
7 years agoNot applicable
Hi buddy,
Try create a table on DAX like i do.
1 - Create a table with this DAX:
Table = SUMMARIZE(Table1;Table1[Project];"Actual Milestone";LOOKUPVALUE(Table1[Milestone];Table1[Completed On];LASTDATE(Table1[Completed On])))
This will bring to you 2 columns, "Project" and "Actual Milestone", the second column alreasy is refering to the last date of "Table1[Completed On]", so is dynamic.
2- Create a calculated column with this:
Completed On = LASTDATE(Table1[Completed On])
this should do the trick.
Any questions, ask ;)