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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Help with measure to display Total

Hi All,

I am trying to calculate the sum of entries for a given month and for a specific range, I am facing issue with displaying the total of the measure, Could you please help me with it?

 

<15 = CALCULATE(SUM(Sheet1[entry]),FILTER(Sheet1,SUMX(Sheet1,Sheet1[entry])>0 && SUMX(Sheet1,Sheet1[entry])<15))
 
>15 = CALCULATE(SUMX(Sheet1,Sheet1[entry]),FILTER(Sheet1,SUMX(Sheet1,Sheet1[entry])>15 && SUMX(Sheet1,Sheet1[entry])<25))
 

Screenshot.pngDataset.png

 

 

 

 

1 ACCEPTED SOLUTION
Vera_33
Resident Rockstar
Resident Rockstar

Hi @Anonymous 

Vera_33_0-1616481104630.png

<15 = 
VAR T1 = GROUPBY(sheet1,sheet1[ename],sheet1[month],"@SUM",SUMX(CURRENTGROUP(),[entry]))
RETURN
SUMX(FILTER(T1,[@SUM]<15),[@SUM])


>15 = 
VAR T1 = GROUPBY(sheet1,sheet1[ename],sheet1[month],"@SUM",SUMX(CURRENTGROUP(),[entry]))
RETURN
SUMX(FILTER(T1,[@SUM]>15&&[@SUM]<25),[@SUM])

View solution in original post

2 REPLIES 2
Vera_33
Resident Rockstar
Resident Rockstar

Hi @Anonymous 

Vera_33_0-1616481104630.png

<15 = 
VAR T1 = GROUPBY(sheet1,sheet1[ename],sheet1[month],"@SUM",SUMX(CURRENTGROUP(),[entry]))
RETURN
SUMX(FILTER(T1,[@SUM]<15),[@SUM])


>15 = 
VAR T1 = GROUPBY(sheet1,sheet1[ename],sheet1[month],"@SUM",SUMX(CURRENTGROUP(),[entry]))
RETURN
SUMX(FILTER(T1,[@SUM]>15&&[@SUM]<25),[@SUM])
Anonymous
Not applicable

Thanks @Vera_33 , that worked:)

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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 Kudoed Authors