Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have 3 columns in a table that have both numeric values and text values. I have written the same measure to sum only if the value is numeric, but I am getting an error for only one column. It is trying to convert "NA" to number in one column (Cannot convert value 'NA' of type Text to type Number), but it is ignoring the same "NA" values in the other columns and successfully summing. The only difference in the measure below is changing Column A to B and C.
Table
Column A | Column B | Column C |
12 | NA | 6 |
NA | 87 | 201 |
476 | 2543 | NA |
Solved! Go to Solution.
Hi,
In the Query Editor, you should replace the NA with null. Thereafter, you can simply write this measure
Measure = sum('Table 1'[Column A])
Hi @k8lyn22
I would like to apologize for the belated reply.
Have you solved your problem? If not, try the following:
Create several measures as follow
ASumOnlyNumbers =
SUMX(
FILTER(
'Table',
ISNUMBER(
IFERROR(
VALUE( 'Table'[Column A] ),
BLANK()
)
)
),
IFERROR(
VALUE( 'Table'[Column A] ),
BLANK()
)
)
BSumOnlyNumbers =
SUMX(
FILTER(
'Table',
ISNUMBER(
IFERROR(
VALUE( 'Table'[Column B] ),
BLANK()
)
)
),
IFERROR(
VALUE( 'Table'[Column B] ),
BLANK()
)
)
CSumOnlyNumbers =
SUMX(
FILTER(
'Table',
ISNUMBER(
IFERROR(
VALUE( 'Table'[Column C] ),
BLANK()
)
)
),
IFERROR(
VALUE( 'Table'[Column C] ),
BLANK()
)
)
Is this the result you expect?
Best Regards,
Community Support Team _Yuliax
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @k8lyn22
I would like to apologize for the belated reply.
Have you solved your problem? If not, try the following:
Create several measures as follow
ASumOnlyNumbers =
SUMX(
FILTER(
'Table',
ISNUMBER(
IFERROR(
VALUE( 'Table'[Column A] ),
BLANK()
)
)
),
IFERROR(
VALUE( 'Table'[Column A] ),
BLANK()
)
)
BSumOnlyNumbers =
SUMX(
FILTER(
'Table',
ISNUMBER(
IFERROR(
VALUE( 'Table'[Column B] ),
BLANK()
)
)
),
IFERROR(
VALUE( 'Table'[Column B] ),
BLANK()
)
)
CSumOnlyNumbers =
SUMX(
FILTER(
'Table',
ISNUMBER(
IFERROR(
VALUE( 'Table'[Column C] ),
BLANK()
)
)
),
IFERROR(
VALUE( 'Table'[Column C] ),
BLANK()
)
)
Is this the result you expect?
Best Regards,
Community Support Team _Yuliax
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
In the Query Editor, you should replace the NA with null. Thereafter, you can simply write this measure
Measure = sum('Table 1'[Column A])
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
70 | |
68 | |
43 | |
34 | |
26 |
User | Count |
---|---|
86 | |
49 | |
45 | |
38 | |
37 |