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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
srkase
Helper IV
Helper IV

RAnge filtration based on column values

Hi all,

My data is 

PRODTOTSTGyear  
A5520012002  
B101020012002  
C151520012002  
D202020022003  
A5520022003  
B101020022003  
C151520022003  
D202020032004  
A52520032004  
B103020032004  
C153520042005  
D204020042005  
      
I need to define the ranges  and then work out the total qty 
      
Range is to be desired on the stg   
Range criterialRange    
>=1 && <=51-5    
>=6 && <=106-10    
>=11 && <=1511-15    
>=1616+    
      
      
Required Result    
      
yearRange1-5Range6-10Range11-15Range16+ 
200120021010150 
20022003510350 
2003200400035 
2004200500035 
      

 

Thanks in advance...

 

REgards

 

SRK

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

 

Untitled.png

 

TOT measure by range: =
CALCULATE (
    SUM ( Data[TOT] ),
    FILTER (
        Data,
        Data[STG] >= MAX ( 'Range STG'[Min] )
            && Data[STG] <= MAX ( 'Range STG'[Max] )
    )
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

2 REPLIES 2
MahyarTF
Memorable Member
Memorable Member

Hi,

In my opinion, there are 2 ways :

1- Create a Group by right-clicking on the STG and Choice New Group :MahyarTF_0-1659677635011.png

then use the new column (group column) in your visual (Matrix table):

MahyarTF_1-1659677685187.png

 

2- Create new column in your table and then use it in Matrix Table visual :

MahyarTF_2-1659677770000.png

 

Mahyartf
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

 

Untitled.png

 

TOT measure by range: =
CALCULATE (
    SUM ( Data[TOT] ),
    FILTER (
        Data,
        Data[STG] >= MAX ( 'Range STG'[Min] )
            && Data[STG] <= MAX ( 'Range STG'[Max] )
    )
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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 Solution Authors
Top Kudoed Authors