Hi, this table is from PowerBI and the Grand Total at the bottom is the average of this set of data by month.
I can't seem to create a measure that duplicates the value that's in each month in the average line. It's purpose is to change the font of the value in the table, based on whether or not it's above or below the average.
for example, in this data set, when I try to change the font in the column based on average, for January, it uses the average over the entire table (77.7) rather than the monthly average (Jan - 77.2). That's incorrect
as the record count increases, more months will appear. And I'll eventually have to add in a date heirarchy where the user can change the date columns from week, month, quarter and year.
Whenever I try to create an average, it averages for the entire time frame, not for that specific month. So as a result, it doesn't accurately change the font color
Row Labels | Jan | Feb | Mar | Apr | May | Jun | Jul | Sep | Oct | Nov | Dec | Grand Total |
<Unknown Directory> | 72.3 | 77.4 | 74.3 | 76.8 | 79.3 | 68.9 | 83.3 | 52.9 | 74.6 | 82.4 | 75.0 | 74.9 |
Record1 | 76.6 | 75.8 | 70.1 | 67.2 | 70.6 | 71.5 | 81.5 | 73.6 | 72.6 | 73.8 | 76.6 | 73.0 |
Record2 | 71.6 | 76.0 | 72.5 | 71.1 | 57.9 | 59.6 | 59.1 | 70.4 | 67.3 | 69.6 | 73.3 | 68.1 |
Record3 | 82.9 | 78.4 | 86.3 | 82.2 | 88.1 | 78.5 | 77.6 | 84.1 | 85.1 | 86.1 | 87.6 | 83.7 |
Record4 | 76.6 | 80.8 | 84.5 | 85.7 | 66.4 | 83.8 | 89.0 | 83.7 | 74.8 | 82.6 | 80.8 | 80.1 |
Record5 | 89.5 | 88.3 | 89.4 | 85.6 | 90.4 | 88.8 | 80.7 | 87.0 | 90.3 | 89.2 | 90.9 | 88.7 |
Record6 | 71.5 | 72.5 | 84.2 | 61.6 | 75.6 | 70.7 | 57.8 | 66.2 | 79.1 | 74.0 | 79.1 | 73.3 |
record7 | 87.9 | 88.4 | 86.8 | 88.8 | 90.6 | 89.9 | 93.9 | 86.4 | 88.6 | 84.6 | 88.0 | 88.2 |
Record8 | 72.4 | 61.5 | 71.0 | 67.2 | 73.5 | 69.6 | 58.2 | 66.4 | 70.4 | 65.3 | 69.3 | 68.2 |
Record9 | 70.6 | 80.7 | 78.3 | 80.0 | 76.1 | 84.2 | 97.3 | 77.1 | 85.9 | 73.6 | 78.4 | 79.1 |
Average | 77.2 | 78.0 | 79.7 | 76.4 | 76.9 | 76.6 | 73.7 | 74.8 | 78.9 | 78.1 | 79.9 | 77.7 |
I've tried everything without success. Any help is appreciated...
Thanks, Steven.
@MRUry7 that's the question, what measure you are using to change the color?
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
hI, Was the information provided to you, helpful regarding the challenge? Do you need additional information from me?
That's the challenge.
In February you can see that the average in that column is 78.0 but the average of the entire table is 77.7
So when I apply the font to the column, it thinks that the average is 77.7
What I'm trying to do is use 78.0 as the median to determine if a column is above or below the average, but it keeps referring to 77.7. Because I'm having trouble creating a measure that looks at each columns average, not the average of the entire table.
@MRUry7 what is your average measure? What is the expected output?
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
The average measure is the average on the last line of the table. The data output is accurate and working, but when I attempt to use the cell elements option in design, to change color depending on the average, instead of using the average at the bottom of each month (ex. January 77.2), it's using the average of the entire table, 77.7
Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!
User | Count |
---|---|
114 | |
73 | |
64 | |
51 | |
49 |
User | Count |
---|---|
184 | |
104 | |
82 | |
79 | |
78 |