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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
DnBls
Frequent Visitor

Measure similar to matrix table that can filter based on row subtotals

Hi,

 

I have 2 related datasets that look like this:

Table1:

DnBls_0-1625749925274.png

 

Table2:

DnBls_1-1625749939721.png

The relationship here is via the 'index' column and it's one-to-many. I am trying to create a measure that would apply for example to a matrix table looking like this:

DnBls_0-1625750512384.png

 

However, I want to filter outa whole column if the row total is for example is <=5. In this case Tuesday+Sunday would not appear in the table at all, while the Total Column would still contain the same counts as in the image. In an ideal scenario, Tuesday+Sunday would still appear in the table, but with all the values replaced by something like 'Not Applicable'.
I've searched around and not found a good response to this. Adding a Filter on the Visual would apply to each value of the matrix, rather than apply only based on row total.

 

Thanks

 

1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@DnBls,

 

Try these measures:

 

Sum Value = SUM ( Table2[Value] )

Display Value = 
VAR vDayTotal =
    CALCULATE ( [Sum Value], ALLEXCEPT ( Table2, Table1[Day] ) )
VAR vResult =
    IF ( vDayTotal <= 5, "N/A", [Sum Value] )
RETURN
    vResult

 

DataInsights_0-1626039530118.png

 





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

Proud to be a Super User!




View solution in original post

2 REPLIES 2
DataInsights
Super User
Super User

@DnBls,

 

Try these measures:

 

Sum Value = SUM ( Table2[Value] )

Display Value = 
VAR vDayTotal =
    CALCULATE ( [Sum Value], ALLEXCEPT ( Table2, Table1[Day] ) )
VAR vResult =
    IF ( vDayTotal <= 5, "N/A", [Sum Value] )
RETURN
    vResult

 

DataInsights_0-1626039530118.png

 





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

Proud to be a Super User!




Thanks! Worked perfectly once adapted for my specific problem (added more filters to allexcept)!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Kudoed Authors