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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
SelflearningBi
Helper III
Helper III

How to exclude NAN in my measure

SelflearningBi_0-1653576417587.png

Please see my fuction, There are NAN is shipped different, I would like to set NAN as empty as well , somehow this function displays NAN as No. 
I just want , NAN in the IN FULL column should show nothing,  blank()

please help ~

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @SelflearningBi ;

Try it.

In Full =
IF (
    'FW22_5 25'[Shipped Qty Difference] = "NaN",
    BLANK (),
    IF (
        AND (
            'FW22_5 25'[Shipped Qty Difference] >= 0,
            'FW22_5 25'[Shipped Qty Difference] <= 0.02
        ),
        "Yes",
        "No"
    )
)


Best Regards,
Community Support Team _ Yalan Wu
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

2 REPLIES 2
v-yalanwu-msft
Community Support
Community Support

Hi, @SelflearningBi ;

Try it.

In Full =
IF (
    'FW22_5 25'[Shipped Qty Difference] = "NaN",
    BLANK (),
    IF (
        AND (
            'FW22_5 25'[Shipped Qty Difference] >= 0,
            'FW22_5 25'[Shipped Qty Difference] <= 0.02
        ),
        "Yes",
        "No"
    )
)


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi @SelflearningBi 

 

Check If this measure can solve the issue

 

In Full =
VAR EXCLUSENAN =
CALCULATE (
SUM ( 'FW22_5 25'[Shipped Qty Difference] ),
FILTER (
'FW22_525',
'FW22_5 25'[Shipped Qty Difference]
<> (
0
/ BLANK ()
)
)
)
RETURN
IF (
'FW22_5 25'[Shipped Qty Difference] = "NaN",
"Nan",
IF (
AND (
'FW22_5 25'[Shipped Qty Difference] >= 0,
'FW22_5 25'[Shipped Qty Difference] <= 0.02
),
"Yes",
"No"
)
)

 

If this post helps, accept it as a solution

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Kudoed Authors