Forum Discussion

aaron797's avatar
aaron797
Advocate I
6 years ago
Solved

Calculated Average Measure, when blank return NA

Hi,

 

I have the below formula, when adding into a table, how do i return all the Blanks (Empty spaces) as a string "N/A?

 

 

Measure = 
CALCULATE(AVERAGE('Table'[Answer]),FILTER(Table,Table[Department]="Corporate Services"))

 

 

Any idea how this can be achieved, can you wrap Calculates in an IF RETURN statement perhaps? I am new to the DAX syntax so any tips would be appreciated. 

2 Replies