Forum Discussion
viajero03082
5 years agoRegular Visitor
Data segmentation
Hello everyone š Q= How can I extract and name the following Alloc? I have a problem with the next data separation I have to get the different alloc (alloc_2, alloc_3 ....) with the help...
- 5 years ago
viajero03082
You can use RANKX to create the sequence. Use the code below for your column. T5 is my table name, you can replace it with yours.Allocation = IF( [DATE]=BLANK(), "0_ALLOC", RANKX( FILTER(T5,T5[show_id] = EARLIER(T5[show_id])) , T5[DATE] ,,ASC) & "_ALLOC" )
Anonymous
5 years agoNot applicable
Such things should be done in Power Query. Not in DAX. I'd kindly suggest you use the right tool for the job. "The fact that something can be done does not mean it should be done"... to cite the long-standing adage.