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
JeffWeir
Advocate V
Advocate V

Writing a measure that 'explodes' a 'From' date across subsequent years

Hi all.  I'd like help with a Measure so that I can turn this:

 

Before.PNG

 

...into this:

What I want.PNG

...i.e. it will 'expand' that 'Proposed Uplift' data, so that the numbers in the [New Capacity] column get repeated for every year going forward, after the date that capacity first comes on stream.

 

But no matter what I try, I always end up with this:


Dont want.PNG

 

 

I have seen how I can use the DAX @Phil_Seamark  has in his book Beginning DAX with Power BI to create a Table of what I want, as per the below:

 

Output.PNG

 

...but I want a dynamic measure that I can use directly in a PivotTable  (and later in Power BI) as shown above, not a static Table.

 

I've tried wrapping a SUMX around the above, but when I use the resulting Measure, I still don't get what I want. And I've tried numerous variations of that, in order to attempt to override the filtering being imposed by the data model.

 

If I can't do it with DAX, I'll just use PowerQuery to expand the table before feeding it to the data model. But I am sooooo curious as to whether this can be done in DAX.

 

1 ACCEPTED SOLUTION
JeffWeir
Advocate V
Advocate V

Yay...   @MattAllington gave me the solution I needed:

=CALCULATE(SUM(Uplift[New Capacity]),FILTER(Uplift,Uplift[Year] <=max(Years[Year])))

Capture.PNG

View solution in original post

2 REPLIES 2
v-juanli-msft
Community Support
Community Support

Hi

Smiley Happy

 

Best Regards
Maggie

JeffWeir
Advocate V
Advocate V

Yay...   @MattAllington gave me the solution I needed:

=CALCULATE(SUM(Uplift[New Capacity]),FILTER(Uplift,Uplift[Year] <=max(Years[Year])))

Capture.PNG

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