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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
mypowerbi1
Helper III
Helper III

remove the values which start with 0. or -0.

Hi,

One of the measure gives output in the range of -800000 to +900000 range. 

I need to remove all those values from a measure's output which start eaither -0. or 0.

please suggest how to remove them.

Thanks

3 REPLIES 3
devesh_gupta
Super User
Super User

@mypowerbi1 Try to use the following dax if it works for you:

= CALCULATE (
    <measure>,
    FILTER (
        ALL ( <table> ),
        LEFT ( <measure>, 2 ) <> "-0" && LEFT ( <measure>, 1 ) <> "0"
    )
)

 

If you find this insightful, please provide a Kudo and accept this as a solution.

Ahmedx
Super User
Super User

try this

IF( ABS([MEASURE])>= 1 ,[MEASURE])

Ahmedx
Super User
Super User

try this

IF( ABS([MEASURE])>= 1 ,[MEASURE])

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.