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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
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!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.