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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

Invalid token

Hi, so i am trying to use a formula 

Is Above Median PT = if([PT (m)]>MEDIAN([PT (m)]), "Yes", "No"
 
However the PT(m) first one is showing as grey and i am not able to execute this formula. This particular value is not getting detected. However the PT(m) after the median is getting detected. Any idea why this is happening?
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Agree with @amitchandak . There are some differences between calculated column and Measure. You could try the following syntaxs to get the expected output.

  • For calculated column:
Column = if([PT (m)]>MEDIAN([PT (m)]), "Yes", "No") 
  • For Measure:
Measure = IF(SUM('Table'[PT (m)]) >CALCULATE( MEDIAN('Table'[PT (m)]),ALL('Table'))  , "Yes", "No")

Output:

Eyelyn9_0-1652165783172.png

Best Regards,
Eyelyn Qin
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

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

Agree with @amitchandak . There are some differences between calculated column and Measure. You could try the following syntaxs to get the expected output.

  • For calculated column:
Column = if([PT (m)]>MEDIAN([PT (m)]), "Yes", "No") 
  • For Measure:
Measure = IF(SUM('Table'[PT (m)]) >CALCULATE( MEDIAN('Table'[PT (m)]),ALL('Table'))  , "Yes", "No")

Output:

Eyelyn9_0-1652165783172.png

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

amitchandak
Super User
Super User

@Anonymous , You are creating this as a new column? Current syntax is for a column

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.