Forum Discussion
Need M code for below Excel Query
- Anonymous1 year ago
Hi KrishnaKawade
Thank you for reaching out to the Microsoft fabric community forum. thanks pankajnamekar25 for your inputs.
I have reproduced your scenario in Power BI. Please find attached the.pbixfile for your reference.
If this post helps, then please give us ‘Kudos’ and consider "Accept it as a solution" to help the other members find it more quickly.
Thanks. - 1 year ago
you can try this
= Table.AddColumn(Source, "Custom", each if [Business Type] = "Tech" then "-" else if Table.RowCount(Table.SelectRows(Source,(x)=>x[SN]=[SN]))>1 then "Y" else "N")
if this does not work, pls provide some sample data
Hi KrishnaKawade
Thank you for reaching out to the Microsoft fabric community forum. thanks pankajnamekar25 for your inputs.
I have reproduced your scenario in Power BI. Please find attached the .pbix file for your reference.
If this post helps, then please give us ‘Kudos’ and consider "Accept it as a solution" to help the other members find it more quickly.
Thanks.
- Anonymous1 year agoNot applicable
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you