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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Applicable88
Impactful Individual
Impactful Individual

Calculated Column in DAX, if no value then...

Hello,

I have a table which mostly has no dataset at the very beginning of the month. Thats because its a forecast sales data for current month, which will be known some time in the first days of a month.

So this table has no rows by then. So I wanted a card to display "TBA"= To be announced, instead of "empty" which is default behaviour from PowerBi Card visualization. 

I did following for calculated column:  

if (  isblank( 'sales'[Forecast]), "TBA", 'sales'[Forecast]) 

also tried with = blank() and other functions. Simply not working. Does DAX won't create a empty row with just a new column stating TBA, because the table has no rows? 

Thank you in advance.

Best. 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Applicable88 ,

 

If your data model does not have any data, it will not be displayed if you add a calculated column, you can use a measure instead.

7.png6.png

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Applicable88 ,

 

If your data model does not have any data, it will not be displayed if you add a calculated column, you can use a measure instead.

7.png6.png

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Applicable88 ,

This can work if you can format 'sales'[Forecast] as text

 

new measures  ---

Forecast M = Sum('sales'['sales'[Forecast])

 

final measure =

if ( isblank( [Forecast M]), "TBA", [Forecast M] & "")

 

or better format the number using the format function

https://docs.microsoft.com/en-us/dax/format-function-dax

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

Hello @amitchandak ,

not working. 

Applicable88_0-1620032812427.png

I think if there are no rows input into DataModell, the format () cannot format from "nothing" and also isblank cannot check for blank when rows=0. Thats what is stated in the left bottom side. zero rows. 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.