Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Happy333
Regular Visitor

Is it possible to put "N/A" instead of Blank values in a sales column of numeric data type? How?

I have a sales table, data type: Whole number. In that, there are multiple blank/null cells. But I want to display those Blank/null cells as "N/A" in table visual sales column.

Sales
10,000
500,000
234,500
 
790,000,000
 
56,342,800
20,000,000
3,457,600,000
2,000,000

 

Want to display above table as below by using 'Table visual'. Please note, the column must have thousand separater (",") for numeric values.

Sales
10,000
500,000
234,500
 N/A 
790,000,000
 N/A 
56,342,800
20,000,000
3,457,600,000
2,000,000

 

I tried by converting number column into text data type, but the resulted values did not have thousand separater (","). 

 

Please suggest possible way to replace "N/A" for blank/null values, in addition, numeric values must contain thousand separater (",") in the same column. Thanks

1 ACCEPTED SOLUTION
ADPowerBI1
Responsive Resident
Responsive Resident

Here's some code for a calculated column. If you want to keep the order (because this will be a text column) you can select the calculated column we're making and select "Order by" at the top, and choose the original column with the numbers. I think this should work 🙂 

Calculated Sales Column = IF( ISBLANK(Table[Sales]), "N/A", FORMAT(Table[Sales], "#,0") )

View solution in original post

2 REPLIES 2
ADPowerBI1
Responsive Resident
Responsive Resident

Here's some code for a calculated column. If you want to keep the order (because this will be a text column) you can select the calculated column we're making and select "Order by" at the top, and choose the original column with the numbers. I think this should work 🙂 

Calculated Sales Column = IF( ISBLANK(Table[Sales]), "N/A", FORMAT(Table[Sales], "#,0") )

v-shex-msft
Community Support
Community Support

HI @Happy333,

AFAIK, current you can't customize the default null value strings. Power bi will force convert the field to text due to there are multiple type data values in one field. Perhaps you can submit an idea to add options to custom the default null value formats.

Microsoft Power BI ideas

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.