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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
EG115
Frequent Visitor

Matrix Issue

I am trying to report data at a State and County level with three different values (each value is brought in via it's own table). My issue is that the matrix only recognizes the value at a county level for the first value I add. The second and third value I add is incorrect at the county and state level. In the snip below the "Premium" column is accurate, but the "Loss" and "Exposure" columns are inaccurate. Each table is structured similarly with columns for "state", "county", "premium/loss/exposure".

 

Any suggestions? 

 

EG115_0-1656707826640.png

 

1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @EG115 ,

 

For this type of problem, the error may be caused by the filtering context in the formula. the ISINSCOPE and ISFILTERED functions are used to determine if the selected field is located in the hierarchy.

just like

M_isinscope = ISINSCOPE('Table'[City])
M_isfiltered = ISFILTERED('Table'[City])

vhenrykmstf_0-1657182849229.png

If you want the total corresponding to the current field City to also be True, then change the field to its previous level.

M_isfiltered = ISFILTERED('Table'[Country])
M_isinscope = ISINSCOPE('Table'[Country])

vhenrykmstf_1-1657182914598.png

If the problem is still not resolved, please provide detailed error information and test data. Looking forward to your reply.


Best Regards,
Henry


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
v-henryk-mstf
Community Support
Community Support

Hi @EG115 ,

 

For this type of problem, the error may be caused by the filtering context in the formula. the ISINSCOPE and ISFILTERED functions are used to determine if the selected field is located in the hierarchy.

just like

M_isinscope = ISINSCOPE('Table'[City])
M_isfiltered = ISFILTERED('Table'[City])

vhenrykmstf_0-1657182849229.png

If you want the total corresponding to the current field City to also be True, then change the field to its previous level.

M_isfiltered = ISFILTERED('Table'[Country])
M_isinscope = ISINSCOPE('Table'[Country])

vhenrykmstf_1-1657182914598.png

If the problem is still not resolved, please provide detailed error information and test data. Looking forward to your reply.


Best Regards,
Henry


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

ALLUREAN
Solution Sage
Solution Sage

Hi, @EG115 

Are Loss and Exposure tables are connected at the same way like Premium? It looks like they are not connected to State table and the value is the same.




Did I answer your question? Mark my post as a solution!


https://allure-analytics.com/
https://www.youtube.com/channel/UCndD_QZVNB_JWYLEmP6KrpA
https://www.linkedin.com/company/77757292/

Proud to be a Super User!




Here is a snip of the Model page. My only relationships are from the County Codes table connecting the "County" with a one-to-many relationship. Am I thinking about this all wrong? 

 

EG115_0-1656860305265.png

 

Here is a snip of the "Premium" table for reference. The loss and exposure data are identical with the only changes being the "Premium" value changing to either "Loss" or "Exposure". 

EG115_1-1656860378968.png

 

Helpful resources

Announcements
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.