Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
I'm trying to understand a difference in how a matrix is behaving. I think the easiest way is to show with a small example.
Here is a sample table that I am using. Row/Sensor combinations with values for each combo:
I create a measure for average value on this table by filtering using the sensor column:
This produces the following matrix:
This was what I was expecting, I am seeing every row/sensor combination in the matrix but the value is restricted to only averaging those rows in the table with a sensor value of 1.
However, I changed the measure to the following:
This change resulted in the following changes to the matrix visual:
I was expecting that even though the measure is using a different column to filter on that I would still see every row/sensor combination from the original table displayed in the matrix. However, those row/sensor combinations that don't meet the filter criteria in the measure are now not being displayed in the matrix. There are no other filters applied to the matrix visual.
Why is the matrix not showing all of the row/sensor combinations when the second version of the measure is being used? I understand that the value being calculated would not necesarrily be meaningful data for all of the combinations, but shouldn't every combination still appear in the visual (similar to version 1 of the measure)?
Thanks!
@jp222 I believe this is due to the filter context and the fact that you're using the Value column both in the Average and in the filter.
Try:
Sensor 3 = CALCULATE ( CALCULATE( AVERAGE[ Table[Value]) ), Table[Value] = 10)
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
It looked like the average function was missing an opening parenthesis in the modified formula. I added that in but it did not change the visual. The matrix still shows only a subset of the row/sensor combinations as if the measure itself is filtering what is shown on the visual.
Thanks.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 43 | |
| 38 | |
| 34 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 65 | |
| 65 | |
| 30 | |
| 26 | |
| 25 |