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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Kamalakar
New Member

Create a new column by comparing a Column values with a Measure Value

Hi Team,

Need your help here

I have a table (name: EmpDetails) with two columns as "EmpID" and "Marks"

EmpIDMarks
10035
20045
30055
40078
50025
60092

 

Now, I have created a mesuare which returns a value (say the value is 50)

I wanted to create a new column in the table as "Flag" which should compare the Marks available at each EmpID and flag it as "Below avg" or "Above Avg"

EmpIDMarksFlag
10035Below Avg
20045Below Avg
30055Above Avg
40078Above Avg
50025Below Avg
60092Above Avg

can you please help me on this.

 

Regards,

Kamal M.

1 ACCEPTED SOLUTION
mahenkj2
Solution Sage
Solution Sage

Hi @Kamalakar ,

 

If your measure1=50 is already defined then you can use:

 

Flag = IF(SUM('Table'[Marks])>[Measure1],
"Above avg","Below avg")

 

Hope it helps.

View solution in original post

2 REPLIES 2
Kamalakar
New Member

Thanks, mahenkj2

this helps.

 

mahenkj2
Solution Sage
Solution Sage

Hi @Kamalakar ,

 

If your measure1=50 is already defined then you can use:

 

Flag = IF(SUM('Table'[Marks])>[Measure1],
"Above avg","Below avg")

 

Hope it helps.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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