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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
ksmith0411
Regular Visitor

Trying to return the first positive min value that isn't zero

Hi, 

I am trying to create a column that will give me the first positive min figure that isnt zero ie I have call data by skill but I want to find the Min queue time from the In SVL col but I dont want it to return zero as the lowest value. As per the data below for this skill I want the min column to return 

ksmith0411_0-1672836631475.png

 

Thanks

K

1 ACCEPTED SOLUTION

@ksmith0411 , Its returning the expected value only. Please refer the below file.

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @ksmith0411 ,

Please try to create a new column with below dax formula:

Min_In_SVL =
VAR tmp = FILTER ( 'Table', [In SVL] > 0 ) RETURN MINX ( tmp, [In SVL] )

vbinbinyumsft_0-1672901783621.png

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

ksmith0411
Regular Visitor

Hi Samarth,

It gave me a number other than zero but still not the min number, for example the data below the min has returned 8 but I would expect it to return 414 

DateWeekMonthCMS SkillCxone SkillIn SVL
01/12/202228/11/202201/12/2022CS MO BXHD RTL T CS Motor2644
02/12/202228/11/202201/12/2022CS MO BXHD RTL T CS Motor2238
03/12/202228/11/202201/12/2022CS MO BXHD RTL T CS Motor1477
04/12/202228/11/202201/12/2022CS MO BXHD RTL T CS Motor498
05/12/202205/12/202201/12/2022CS MO BXHD RTL T CS Motor3530
06/12/202205/12/202201/12/2022CS MO BXHD RTL T CS Motor2825
07/12/202205/12/202201/12/2022CS MO BXHD RTL T CS Motor2638
08/12/202205/12/202201/12/2022CS MO BXHD RTL T CS Motor2424
09/12/202205/12/202201/12/2022CS MO BXHD RTL T CS Motor2460
10/12/202205/12/202201/12/2022CS MO BXHD RTL T CS Motor1261
11/12/202205/12/202201/12/2022CS MO BXHD RTL T CS Motor414
12/12/202212/12/202201/12/2022CS MO BXHD RTL T CS Motor2950
13/12/202212/12/202201/12/2022CS MO BXHD RTL T CS Motor2572
14/12/202212/12/202201/12/2022CS MO BXHD RTL T CS Motor2473
15/12/202212/12/202201/12/2022CS MO BXHD RTL T CS Motor2346
16/12/202212/12/202201/12/2022CS MO BXHD RTL T CS Motor2603
17/12/202212/12/202201/12/2022CS MO BXHD RTL T CS Motor1201
18/12/202212/12/202201/12/2022CS MO BXHD RTL T CS Motor419
19/12/202219/12/202201/12/2022CS MO BXHD RTL T CS Motor3071
20/12/202219/12/202201/12/2022CS MO BXHD RTL T CS Motor2662
21/12/202219/12/202201/12/2022CS MO BXHD RTL T CS Motor2711
22/12/202219/12/202201/12/2022CS MO BXHD RTL T CS Motor2298
23/12/202219/12/202201/12/2022CS MO BXHD RTL T CS Motor1986
24/12/202219/12/202201/12/2022CS MO BXHD RTL T CS Motor539
25/12/202219/12/202201/12/2022CS MO BXHD RTL T CS Motor0
26/12/202226/12/202201/12/2022CS MO BXHD RTL T CS Motor0
27/12/202226/12/202201/12/2022CS MO BXHD RTL T CS Motor1332
28/12/202226/12/202201/12/2022CS MO BXHD RTL T CS Motor2256
29/12/202226/12/202201/12/2022CS MO BXHD RTL T CS Motor2029
30/12/202226/12/202201/12/2022CS MO BXHD RTL T CS Motor1374
31/12/202226/12/202201/12/2022CS MO BXHD RTL T CS Motor856

@ksmith0411 , Its returning the expected value only. Please refer the below file.

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Samarth_18
Community Champion
Community Champion

Hi @ksmith0411 ,

 

Could you please share the data in raw format here not the screenshot?

It will help you get the answer more quickly. 🙂

 

In the meantime you could try below code:-

col =
CALCULATE (
    MIN ( 'Table'[In SVL] ),
    FILTER (
        'Table',
        'Table'[CMS skill] = EARLIER ( 'Table'[CMS skill] )
            && 'Table'[CXONE skill] = EARLIER ( 'Table'[CXONE skill] )
            && 'Table'[In SVL] > 0
    )
)

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors