Forum Discussion
Anonymous
5 years agoNot applicable
Combine Group By with CountIf in one formula using Power Query M
Hi everyone I modified the formula from the following thread: Solved: Re: CountIf with Group by in Power Query - Microsoft Power BI Community for my use case below. I'm trying to group by all...
- 5 years ago
Hi Anonymous ,
As tested here,seems there is some problem,the result is not correct,I modify the M codes as below:
= Table.AddColumn(#"Changed Type", "Custom", each Table.RowCount(Table.SelectRows(#"Changed Type",(x)=>x[Category]=[Category] and x[Click]=1)))And you will see:
For the related .pbix file,pls see attached.
Best Regards,
KellyDid I answer your question? Mark my reply as a solution!
v-kelly-msft
5 years agoCommunity Support
Hi Anonymous ,
As tested here,seems there is some problem,the result is not correct,I modify the M codes as below:
= Table.AddColumn(#"Changed Type", "Custom", each Table.RowCount(Table.SelectRows(#"Changed Type",(x)=>x[Category]=[Category] and x[Click]=1)))
And you will see:
For the related .pbix file,pls see attached.
Best Regards,
Kelly
Did I answer your question? Mark my reply as a solution!