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,
I was wondering which of the following measures is the best to count rows of a filtered table (and why) ? Is there actually a difference? The result in the same in my report.
Measure1 = COUNTX(FILTER(Table, Table[Unit price] >300), Table[Unit price])
Solved! Go to Solution.
Hello @Dhania_BI ,
COUNTX will exclude white space and Boolean data, while COUNTROWS will also count them.
In addition, COUNTX is generally used for the appearance of measurements or numeric values.
You will get the same result in your case using both, as you are counting values from the filtered table.
Here's a video that could help you: https://www.youtube.com/watch?v=y2GPFFOW3fA
Give it a thumbs up if this post helped you in any way and mark this post as a solution if you solved your !!!
Hello @Dhania_BI ,
COUNTX will exclude white space and Boolean data, while COUNTROWS will also count them.
In addition, COUNTX is generally used for the appearance of measurements or numeric values.
You will get the same result in your case using both, as you are counting values from the filtered table.
Here's a video that could help you: https://www.youtube.com/watch?v=y2GPFFOW3fA
Give it a thumbs up if this post helped you in any way and mark this post as a solution if you solved your !!!
Thank you Anand, all clear!
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 |
---|---|
102 | |
101 | |
78 | |
70 | |
64 |
User | Count |
---|---|
140 | |
106 | |
100 | |
83 | |
73 |