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
vjnvinod
Impactful Individual
Impactful Individual

Current Measure to show "N/A" instead of blank

Dear all,

 

i am using the below measure & which is correct, the only thing i would like to show, if values are blank, then show that "N/A"

EU Current Month - 2% Actual =
CALCULATE (
DIVIDE (
SUM ( 'People Flash Consolidated'[Chargeable Hours - Actual] ),
SUM ( 'People Flash Consolidated'[Effective Available Hours - Actual] )
),
'People Flash Consolidated'[Period] = "MTD",
'People Flash Consolidated'[3 M Weightage] = TRUE
)
 
How do i tweak this measure to give me a result which is "n/a" if the value is blank?
Capture.PNG
 
 
 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hello @vjnvinod 

You can try the below code.

EU Current Month - 2% Actual =
VAR TotalHours =
CALCULATE (
DIVIDE (
SUM ( 'People Flash Consolidated'[Chargeable Hours - Actual] ),
SUM ( 'People Flash Consolidated'[Effective Available Hours - Actual] )
),
'People Flash Consolidated'[Period] = "MTD",
'People Flash Consolidated'[3 M Weightage] = TRUE
)
RETURN
IF( ISBLANK( TotalHours ), "N/A", TotalHours )

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hello @vjnvinod 

You can try the below code.

EU Current Month - 2% Actual =
VAR TotalHours =
CALCULATE (
DIVIDE (
SUM ( 'People Flash Consolidated'[Chargeable Hours - Actual] ),
SUM ( 'People Flash Consolidated'[Effective Available Hours - Actual] )
),
'People Flash Consolidated'[Period] = "MTD",
'People Flash Consolidated'[3 M Weightage] = TRUE
)
RETURN
IF( ISBLANK( TotalHours ), "N/A", TotalHours )

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.