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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Replace Blank or Null for N/A

Hello, 

I have a card with some trendline and when there is no value i want it to show "N/A".

 

I already tried this formula:

PREV_CH_ATEND visual = IF(ISBLANK([PREV_CH_ATEND]), "N/A", [PREV_CH_ATEND])
Result: 
xumbinho_0-1656600924312.png

 

I already tried another option:

PREV_CH_ATEND visual = IF([PREV_CH_ATEND]=BLANK() || [PREV_CH_ATEND]=" ","N/A",[PREV_CH_ATEND])

Result:

xumbinho_1-1656600992183.png

 

 

Can someone help me with this?

 

Thanks,

6 REPLIES 6
amitchandak
Super User
Super User

@Anonymous , try

 

coalesce([PREV_CH_ATEND]), "N/A")

 

or

 

if(isblank([PREV_CH_ATEND]) || [PREV_CH_ATEND] = "" , "N/A",[PREV_CH_ATEND])

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Still the same, shows "(Blank)"

@Anonymous ,
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

This is the initial Formula:

xumbinho_0-1656603369840.png

This is the measure for the card:

xumbinho_1-1656603420381.png

 

 

Do you need more info?

Anonymous
Not applicable

I exported the data to csv file

 

Result:

xumbinho_0-1656604008222.png

 

The measure is replacing for "N/A" but somehow it's shows (Blank) in Card...

Anonymous
Not applicable

I got another conclusion, if i change the filter just for 1 year the measure is ok and it shows N/A.

The problem is when I filter 2 or more years...

 

Anyone know how to solve this?

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.