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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
AidanW99
Frequent Visitor

If row subtotal of Matrix is greater than 100 then return True

Hello I have a matrix table that resembles the following:

 

Film NameGenreAge RatingCinemaJan-24Feb-24Mar-24Apr-24
BarbieComedyPGLondon70508010
   Glasgow40204030
GhostbustersActionPGManchester30502090
   Cardiff108040100
BatmanSuperhero12London40405020

 

What I want is to create a Measure that filters all the month columns by whether or not the row subtotal adds up to over a 100 (e.g. Barbie in Jan and Ghostbusters in April, etc, should be shown). I have tried the following but it seems to calculate the 'viewers' for ALL the month columns rather than each of the columns individually:

 

 

if(CALCULATE(
            SUM('Films'[Viewers]),
            KEEPFILTERS(Film[Month] >= DATE(YEAR(TODAY()), MONTH(TODAY()), 1)),
            ALL('Film'[Film Name])
        )>1,1,0)

 

 

   Not sure if I have explained this well, but any help will be appreciated 🙂
3 REPLIES 3
Anonymous
Not applicable

Hi @AidanW99 ,

Can you give me more about the Matrix's details or the .pbix file?

I currently create a table and create a measure.

Measure =
VAR _Jan =
    SUM ( 'Table'[Jan-24] )
VAR _Feb =
    SUM ( 'Table'[Feb-24] )
VAR _Mar =
    SUM ( 'Table'[Mar-24] )
VAR _Apr =
    SUM ( 'Table'[Apr-24] )
RETURN
    IF ( _Jan > 100 || _Feb > 100 || _Mar > 100 || _Apr > 100, 1, 0 )

Then I can get the result.

vyilongmsft_0-1712630624586.png

 

 

 

Best Regards

Yilong Zhou

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

There is quite a few date columns so im not sure if this would be the best method. There's also over 1000 rows.

 

The date months range from 2022 up to 2027. 

Anonymous
Not applicable

Hi @AidanW99 ,

I know you have many rows, so can you provide more details with your desired output and pbix file without privacy information (or some sample data)?

 

 

Best Regards

Yilong Zhou

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.