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.
Hi,
Is there a simple measure that counts all blank rows in a table? Additionally, is there a measure that counts all duplicates in a table?
Any advice is much appreciated.
Cheers
Nathan
Solved! Go to Solution.
@Anonymous , Try like
COUNTROWS(ALL('DateTime')) - COUNTROWS(ALLNOBLANKROW('DateTime'))
COUNTROWS(ALL('Table')) - COUNTROWS(ALLNOBLANKROW('Table'))
Refer
https://docs.microsoft.com/en-us/dax/allnoblankrow-function-dax
@Anonymous , You have a function countblank for column.
https://docs.microsoft.com/en-us/dax/countblank-function-dax
Do want count complete blank row ?
Thank you for the reply @amitchandak !!
I understand there is a countblank funtion, but i'm not needing to count blank rows in a column, i need to count the number of blank rows in my entire table. Would you know what to do?
@Anonymous , Try like
COUNTROWS(ALL('DateTime')) - COUNTROWS(ALLNOBLANKROW('DateTime'))
COUNTROWS(ALL('Table')) - COUNTROWS(ALLNOBLANKROW('Table'))
Refer
https://docs.microsoft.com/en-us/dax/allnoblankrow-function-dax
Thank you again @amitchandak,. This does work, however i realise it is calculating whether the row is entirelly blank. I'm looking for a measure that calculates how many blank cells there are in a table.
I hope this makes sense, i did word the initial question wrong so i will mark your reply as a solution. If you are able to advice me on how to count the number of blank cells in a table that would be great.
Cheers
Nathan
@Anonymous , Multiple by No of columns. [Blank Rows] * no of columns
Or countblank(Table[Col1])+ countblank(Table[Col2])+ countblank(Table[Col3) + countblank(Table[Col4]) + .....
@Anonymous , do you need more help on this
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 |
---|---|
114 | |
100 | |
81 | |
70 | |
62 |
User | Count |
---|---|
148 | |
116 | |
104 | |
90 | |
65 |