Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello All,
I have a Table show below
Ask is to Group the data by [Month] and Count Rows where [Value] >= 0. I have used below M-code but it is faulty.
= Table.Group(#"Changed Type", {"Month"}, {"Count", each Table.RowCount(Table.SelectRows(#"Changed Type", each [Value] >= 0))})
Can anybody please help me here and explain to me where I am wrong along with solution. It would be of much help. Thanks 🙂
Solved! Go to Solution.
You do no "group by". My solution:
1) Filter first the column
2) Group by
The result:
Proud to be a Super User!
You do no "group by". My solution:
1) Filter first the column
2) Group by
The result:
Proud to be a Super User!
I cannot filter the data >=0 as there are other columns also which are being used for different calculations.
Than you have to make a full data example please! 🙂
And your desired result.
For the "group by" you have to think about what should happend to the second column.
Proud to be a Super User!
No worries. I did a workaround as you suggested. I created separate table, Disabled Load in Report, and appended the table based on Date. Solved the problem
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
104 | |
101 | |
79 | |
72 | |
64 |
User | Count |
---|---|
142 | |
108 | |
101 | |
81 | |
74 |