Forum Discussion
TimoKosonen
7 years agoRegular Visitor
How to create data to column from existing table
I can get this kind of data. Data contains thousands rows. My need is get to actual factory column to all rows 0008. and other factory. This is easy to do to those rows where at Production area colu...
- 7 years ago
Hi TimoKosonen,
So what are the rules? You can add it yourself. Then the [Actual factory] will be filled automatically.
Factory = SWITCH ( TRUE (), ISNUMBER ( SEARCH ( "Kank", 'ZMDWF'[Production area],, BLANK () ) ), "0008", ISNUMBER ( SEARCH ( "oth", 'ZMDWF'[Production area],, BLANK () ) ), "0001", "9999" )Best Regards,
Dale
v-jiascu-msft
7 years agoMicrosoft Employee
Hi TimoKosonen,
Is the result in the snapshot what you want?
Actual Factory = CALCULATE ( MIN ( [Factory] ), ALLEXCEPT ( ZMDWF, ZMDWF[SD Doc.] ) )
Best Regards,
Dale
TimoKosonen
7 years agoRegular Visitor
This is partial solution. how I can add other factory? Please look picture what is need to me,
- v-jiascu-msft7 years agoMicrosoft Employee
Hi TimoKosonen,
So what are the rules? You can add it yourself. Then the [Actual factory] will be filled automatically.
Factory = SWITCH ( TRUE (), ISNUMBER ( SEARCH ( "Kank", 'ZMDWF'[Production area],, BLANK () ) ), "0008", ISNUMBER ( SEARCH ( "oth", 'ZMDWF'[Production area],, BLANK () ) ), "0001", "9999" )Best Regards,
Dale
