Forum Discussion
How to Create A Dynamic List from a String Column
- Anonymous1 year ago
Hi Tobz007 ,
Thanks to mickey64 and ryan_mayu for their quick replies. I have a DAX method to add:
(1) This is my table. It contains data for this month and last month.
(2) We can create a [Previous month] table.
Previous month = var _month=MONTH(MAXX(ALL('Table'),[Date]))-1 RETURN CALCULATETABLE(VALUES('Table'[Name]),FILTER('Table',MONTH([Date])=_month))(3) We can create a table and a status column.
Table 2 = VALUES('Table'[Name])Status = var _month=MONTH(MAXX(ALL('Table'),[Date])) var _table= CALCULATETABLE(VALUES('Table'[Name]),FILTER('Table',MONTH([Date])=_month)) var _table_a=EXCEPT('Previous month',_table) var _table_b=EXCEPT(_table,'Previous month') RETURN SWITCH(TRUE(), [Name] in _table_a,"A", [Name] in _table_b,"B", "C")Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Step 0: I use these data.
"PreviousMonth" Table
"ThisMonth" Table
Step 1: I do "Merge Queries as New" to "PreviousMonth" Table on Power Query Editor.
Step 2: I add a "Conditional" column below.
Step 3: I remove the "ThisMonth.Names" column and change a type of "Custom" column to "Text".
Step 4: I do same procedure to "ThisMonth" Table.
Step 5: I do "Append Queries as New" to the "Merge1" Table and the "Merge2" Table.
Step 6: I remove duplicates.
Step 6: I make a table.
- Tobz0071 year agoFrequent Visitor
Thanks alot mickey64, really appreciate the reply.