Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I have a column with daily records of rainfall. I want to create a new column that calculates if a certain day is above/below the average rainfall over the course of the year.
It should go something like IF(Rainfall, > Average(Rainfall), "Above Average", < Average(Rainfall), "Below Average")
Clearly this measure is wrong, just wanted to give an idea of what I'm trying to accomplish, thanks!
Solved! Go to Solution.
Hi @water-guy-5 ,
You can follow the blow steps to get it:
1. Create a measure to get the average of rainfall
Average of rainfall = CALCULATE ( AVERAGE ( 'Table'[Rainfall] ), ALLSELECTED ( 'Table' ) )
2. Create a calculated column to get the value which shows above or below average
Column =
IF (
'Table'[Rainfall] > [Average of rainfall],
"Above Average",
IF (
'Table'[Rainfall] < [Average of rainfall],
"Below Average",
"Equal Average"
)
)
Best Regards
Hi @water-guy-5 ,
You can follow the blow steps to get it:
1. Create a measure to get the average of rainfall
Average of rainfall = CALCULATE ( AVERAGE ( 'Table'[Rainfall] ), ALLSELECTED ( 'Table' ) )
2. Create a calculated column to get the value which shows above or below average
Column =
IF (
'Table'[Rainfall] > [Average of rainfall],
"Above Average",
IF (
'Table'[Rainfall] < [Average of rainfall],
"Below Average",
"Equal Average"
)
)
Best Regards
The below logic should work:
User | Count |
---|---|
84 | |
77 | |
76 | |
43 | |
36 |
User | Count |
---|---|
109 | |
56 | |
52 | |
45 | |
43 |