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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
totamum
Frequent Visitor

Indicate whether data is above or below average

I'm trying to create a card that will say whether a data item is above or below average.  I came across an IF formula on another post and it looks like it should work great but when entering the formula, I'm finding only the measures in the table are available to select and not my other data items.  I wanted to show if Page Views is above or below average using the Average Page Views measure I have.  Here is my table and formula below.  Any ideas?  

 

totamum_0-1734712987036.png

 

totamum_1-1734713008712.png

 

Column = 
IF (
    'Table'[abc] > [Average of abc],
    "Above Average",
    IF (
        'Table'[abc] < [Average of abc],
        "Below Average",
        "Equal Average"
    )
)

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @totamum ,

 

First of all thanks to lbendlin  for the quick reply. I have some other thoughts to add:

(1) This is my test data.

vtangjiemsft_0-1734920067405.png

(2) We can create a average measure.

Average Page Views = AVERAGEX(ALLSELECTED('Table'),[Page Views])

(3) We can create a conditional column or a conditional measure.

Column = 
IF (
    [Page Views] > [Average Page Views],
    "Above Average",
    IF ( [Page Views] < [Average Page Views], "Below Average", "Equal Average" )
)

vtangjiemsft_1-1734920308478.png

 

Measure = IF (
    SUM('Table'[Page Views]) > [Average Page Views],
    "Above Average",
    IF (
        SUM('Table'[Page Views]) < [Average Page Views],
        "Below Average",
        "Equal Average"
    )
)

vtangjiemsft_2-1734920346431.png

Best Regards,

Neeko Tang

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 @totamum ,

 

First of all thanks to lbendlin  for the quick reply. I have some other thoughts to add:

(1) This is my test data.

vtangjiemsft_0-1734920067405.png

(2) We can create a average measure.

Average Page Views = AVERAGEX(ALLSELECTED('Table'),[Page Views])

(3) We can create a conditional column or a conditional measure.

Column = 
IF (
    [Page Views] > [Average Page Views],
    "Above Average",
    IF ( [Page Views] < [Average Page Views], "Below Average", "Equal Average" )
)

vtangjiemsft_1-1734920308478.png

 

Measure = IF (
    SUM('Table'[Page Views]) > [Average Page Views],
    "Above Average",
    IF (
        SUM('Table'[Page Views]) < [Average Page Views],
        "Below Average",
        "Equal Average"
    )
)

vtangjiemsft_2-1734920346431.png

Best Regards,

Neeko Tang

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

Thank you!  That worked!

lbendlin
Super User
Super User

You created a column.  You cannot meaningfully use measures in calculated columns. Did you mean to create a measure?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.