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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Himaja95
Helper I
Helper I

PowerBi

I need to display NODATA instead of Blank,for the columns which do not have data.

For Example :

 

If I chose Activity = Walk in a filter,then it should be HoursSpent = NODATA (As there is No data ,it should show NODATA instead of Blank)

 

I have used this below code, but didnt work for me.

Isblank = 
VAR __Value = SELECTEDVALUE( 'Table 1'[Activity] )
VAR __Res = IF( ISBLANK( __Value ), 0, __Value)
RETURN
__Res

 Please help

2 REPLIES 2
Himaja95
Helper I
Helper I

@amitchandak ,I am new to PowerBi ,I didnt understand 
Could you please be more specific

amitchandak
Super User
Super User

@Himaja95 , Try to use Dynamic Format Strings, write this in format in Double quotes

example , I created measure

Measure = if(Max('Item'[Brand])  ="Brand 1", [Net], 0)
and format
"""" & if((SELECTEDMEASURE())=0, "none", SELECTEDMEASURE()) & """"

 

Power BI Dynamic Format Strings for Measures| Format without converting to text: https://youtu.be/qHALucET7N8

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.