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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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