Forum Discussion
Grouping or distinct values
- Anonymous1 year ago
Hi Billy_1979,
I think you should modify your M query as below:
if List.Contains([All Data][Sticker ID], "Top 30") then "Top30" else "Other"I have made a simple test for your reference:
Please check the attached .pbix file for details.
Best Regards,
Qi
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
Hi Akash_Varuna
So i have grouped the data
Then i created the custom column,
When i do this im getting alot of duplicate entries.
i think i may have missed a step or the logic i have put in is incorrect.
Thanks
Hi Billy_1979 , Instead of category put your required column Sticker id or any other
eg : if List.Contains([All Data][Sticker ID], "Top30") then "Top30" else "Other"