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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
erihsehc
Helper III
Helper III

strange result from dax calculation

hi there,

 

The below "PAT% format" result is -1.#IND, it is quite strange. The PAT new and Sales new=0, I thought the result should be "na", how to adjust the formula to get the "na" result? thanks

 

PAT% new = [PAT new]/[Sales new]

 

PAT% format = iferror(if(OR([PAT% new]>9.99,[PAT% new]<-9.99),"nm",if([PAT% new]<0,FORMAT(-[PAT% new],"(0.0%)"),FORMAT([PAT% new],"0.0%"))),"na")

 

result=>  -1.#IND

 

Best regards,

ER

1 REPLY 1
Anonymous
Not applicable

HI @erihsehc,

 

Maybe you can try to use below formula:

PAT% format = 
var _value=VALUE([PAT% new])
Return
IFERROR (
    IF (
        OR ( _value > 9.99, _value < -9.99 ),
        "nm",
        IF ( 
            _value < 0,
            FORMAT ( ABS(_value), "(0.0%)" ),
            FORMAT (_value, "0.0%" )
        )
    ),
    "na"
)

 

If above not help, can you please provide more detail info ? (e.g: which type of calculation you used, measure or calculated column? datasource type...)

 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.