Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi, I'm looking to remove the zeros from my measure so the graph only takes into account the quarters with data.
Measure I used to combine the regions:
As Q4 does not have North data, it's still dividing by 3 which I do not want. Is there a way to not include blank or zero entries in the calculation?
For more context, before I got to the line graph above, I had to separate the regions individually from the column as the line graph was not allowing me to add the Region AND the Total Score(averaged) line...but if I separated them individually it did. Also, if there's any easier way I'm keen to hear it. The data is structured like this FYI:
| Region | Score |
| South East | 4 |
| South West | 5 |
| North | 6 |
Thanks for your help
Solved! Go to Solution.
Hi @RichOB ,
Thanks @bhanu_gautam for the quick reply. Please allow me to offer an alternative idea:
(1) This is my test data.
We can create a column on Table.
Avg = AVERAGEX(FILTER('Table',[Quarter]=EARLIER('Table'[Quarter])),[Score])
(2) We can create a table [Table2].
Table 2 = ADDCOLUMNS(VALUES('Table'[Quarter]),"Region","RegAvg")
Then create a column on Table2.
Score = CALCULATE(MAX('Table'[Avg]),FILTER('Table',[Quarter] =EARLIER('Table 2'[Quarter])))
(3) Then we can create a table [Table3].
Table 3 =
var _a=SUMMARIZE('Table',[Quarter],[Region],[Score])
RETURN UNION(_a,'Table 2')
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.
Hi @RichOB ,
Thanks @bhanu_gautam for the quick reply. Please allow me to offer an alternative idea:
(1) This is my test data.
We can create a column on Table.
Avg = AVERAGEX(FILTER('Table',[Quarter]=EARLIER('Table'[Quarter])),[Score])
(2) We can create a table [Table2].
Table 2 = ADDCOLUMNS(VALUES('Table'[Quarter]),"Region","RegAvg")
Then create a column on Table2.
Score = CALCULATE(MAX('Table'[Avg]),FILTER('Table',[Quarter] =EARLIER('Table 2'[Quarter])))
(3) Then we can create a table [Table3].
Table 3 =
var _a=SUMMARIZE('Table',[Quarter],[Region],[Score])
RETURN UNION(_a,'Table 2')
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.
@RichOB , You can create a measure to count non zero
Proud to be a Super User! |
|
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 97 | |
| 74 | |
| 50 | |
| 47 | |
| 44 |