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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

ISBLANK = 0 not holding when measure is formatted

I have a column within a matrix containing different measures, one of the values is formatted in the following format:

 

"(" & FORMAT([Measure], "£#,#") & ")"
 
In some cases the measure returns a NULL value, and appears like this: (£)
 
I want it to appear as (£0) if possible but can't find a way to do this. I created this measure and tried to insert it but to no avail:
 
New Measure = IF(ISBLANK([Measure]),0,[Measure])
 
It still returns (£) within the matrix column, despite showing £0 when placed in a card. Any help is much appreciated.
 
Many thanks
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,

 

Very close, it worked with the following:

 

"(" & FORMAT([Measure], "£#,#0") & ")"

 

Many thanks! 

View solution in original post

3 REPLIES 3
AilleryO
Memorable Member
Memorable Member

Hi,

 

Could it work without test if your format formula is :

"(" & FORMAT([Measure], "£0,#") & ")"

Just replacing in your format the # by a 0, to force the display of it in any case. 

Is this working ?

Anonymous
Not applicable

Hi,

 

Very close, it worked with the following:

 

"(" & FORMAT([Measure], "£#,#0") & ")"

 

Many thanks! 

az38
Community Champion
Community Champion

@Anonymous 

it is complicated question, to give a correct answer we need to see a little bit more - for example, [Measure] statement.

Now I can recommend to do

New Measure = IF(ISBLANK([Measure]),0,[Measure])
"(" & FORMAT([New Measure], "£#,#") & ")"

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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