Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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)
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
93 | |
87 | |
80 | |
69 | |
68 |
User | Count |
---|---|
226 | |
129 | |
119 | |
83 | |
77 |