Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Dear All,
I am importing a small Excel file into a Power BI report.
In a table I want to show the total number of records, where I don't want to take the record into account with a zero value.
Simplified the following situation:
Excel file imported:
Line | Number |
1 | 3 |
2 | 0 |
3 | 8 |
Desired output in Power BI table:
Number of records |
2 |
When I use the regular conditions (selecting 'Count' in the tabel format, I will receive an output of number of records of 3 (counting the records).
Any suggestion?
Kind regards,
Reinier
Solved! Go to Solution.
Try this one
count = CALCULATE(COUNT('table'[Number]),'table'[Number] <> 0)
Try this one
count = CALCULATE(COUNT('table'[Number]),'table'[Number] <> 0)
User | Count |
---|---|
102 | |
92 | |
85 | |
78 | |
71 |
User | Count |
---|---|
113 | |
104 | |
101 | |
73 | |
65 |