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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Lakshmi1294
Frequent Visitor

Creating custom column with Multiple condition on Column

Hi All,

I have a table containing the list of multiple items and values like below
 

Item Name    Value
Kp123_K1      29.35
FK569_K1       11.5
Kp123_K2      30.25
FK569_K2      13.11
Kp123_K3       26.56
FK569_K3       12.00

In the new column, I should get if (item name(FK569_K1)<11.9) then item name(Kp123_K1 )* 24  
 if the condition is satisfied value will return( Ex.  29.35* 24) else false should be return.

Can any one help me the dax formula for this to get new custom column


Thank you for the help 








1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Lakshmi1294 ,

 

Here are the steps you can follow:

1. Create calculated column.

All1 =
var _if=
IF('Table'[Value]<11.9,1,0)
return
IF(
    _if =0 ,'Table'[Value] *24)
Max1 =
IF('Table'[Value]<11.9
,
MAXX(ALL('Table'),[Value]) * 24,BLANK())

2. Result:

vstephenmsft_0-1684892216736.png

 

 

Best Regards,

Liu Yang

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

3 REPLIES 3
Anonymous
Not applicable

Hi @Lakshmi1294 ,

 

Here are the steps you can follow:

1. Create calculated column.

All1 =
var _if=
IF('Table'[Value]<11.9,1,0)
return
IF(
    _if =0 ,'Table'[Value] *24)
Max1 =
IF('Table'[Value]<11.9
,
MAXX(ALL('Table'),[Value]) * 24,BLANK())

2. Result:

vstephenmsft_0-1684892216736.png

 

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

tamerj1
Super User
Super User

Hi @Lakshmi1294 
No sure if I correctly understood the requirement. However, please try

1.png

 

Result = 
IF ( 
    'Table'[Value] < 11.9, 
    MAXX ( 
        CALCULATETABLE ( 'Table', ALLEXCEPT ( 'Table', 'Table'[Group] ) ),
        'Table'[Value]
    ) * 24
)

 

Hi 

I don't want to create group field, could you please tell me without out group and also  if value<11.9 it should pick up the above value of respective item values 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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