0
0
Power BIbi_tool~10 mins

Handling null and blank values in Power BI - Cell-by-Cell Formula Trace

Choose your learning style9 modes available
Sample Data

Sales data with some null and blank values in column A

CellValue
A1Sales
A2100
A3
A4200
A5
A6150
Formula Trace
TotalSales = SUMX(FILTER(Table1, NOT(ISBLANK(Table1[Sales]))), Table1[Sales])
Step 1: FILTER(Table1, NOT(ISBLANK(Table1[Sales])))
Step 2: SUMX(filtered rows, Table1[Sales])
Step 3: TotalSales
Cell Reference Map
   A   
1 Sales 
2 100  
3 null 
4 200  
5 ""   
6 150  

Filter removes row 5 (blank), null in row 3 is not removed by ISBLANK
The formula references the Sales column in rows 2 to 6, filtering out blank values
Result
   A       B         
1 Sales   TotalSales 
2 100     450        
3 null               
4 200               
5 ""                
6 150               
TotalSales calculated as 450 ignoring blank Sales values
Sheet Trace Quiz - 3 Questions
Test your understanding
Which rows are included in the SUMX calculation?
AAll rows including null and blank
BRows with Sales 100, 200, and 150
COnly rows with null or blank
DOnly the first row
Key Result
Use FILTER with NOT(ISBLANK()) to exclude blank values before aggregation