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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Austinehype
Helper I
Helper I

Sum of remaining distinct values

Hi

 

I need a measure or calculated column that sum up the remaining month for example below

 

We are now in December and 3 months left for this fiscal year if I sum 3+2+1= 6 in December

In January it should be sum 2+1=3

In February it should be sum 1

FY begins in April and ends in March

 

MonthMonth left
December3
December3
Jan2
Jan2
Feb1
Feb1
March0
  
  
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Austinehype ,

 

Create a new table like below and create a relationship between table1 and table2.

1.PNG

Then create a measure.

Measure = CALCULATE(SUM('Table 2'[Month left]),FILTER(ALL('Table'),'Table'[Month left]<MIN('Table'[Month left])+1))

Result would be shown as below.

2.PNG

 

Best Regards,

Jay

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Austinehype ,

 

Create a new table like below and create a relationship between table1 and table2.

1.PNG

Then create a measure.

Measure = CALCULATE(SUM('Table 2'[Month left]),FILTER(ALL('Table'),'Table'[Month left]<MIN('Table'[Month left])+1))

Result would be shown as below.

2.PNG

 

Best Regards,

Jay

 

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