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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
I have a Dimension Table, Fact Table and Date Table.
In the Dimension Table you have a ProjectNr, its Price, DateSigned and ProjectEndDate.
In the Fact Table you see when you spend on this Project (key is ProjectNr, Date and Spent Amount).
I'd like to see: cumulative spending values on each project, where the DateTable >= DateSigned and DateTable <= ProjectEndDate
File: https://1drv.ms/u/s!AvDjQoL_zmjliFW4jNoEerXTDhOu?e=0wEDfi
@JohanData
If I get you right, you could use RELATED function to compare the dates in fact table with dates dimention table.
cumulative spending by project no.=
CALCULATE (
SUM ( 'Fact'[SpentAmount] ),
FILTER (
ALLEXCEPT ( 'Fact', 'Fact'[ProjectNr] ),
[Date] <= EARLIER ( 'Fact'[Date] )
),
'Fact'[Date] >= RELATED ( 'Dimension'[DateSigned] ),
'Fact'[Date] <= RELATED ( 'Dimension'[ProjectEndDate] )
)
Paul
Best
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous Thanks for your support. I can't make your proposed measure right. This is the contextual situation. Could you please help me out?
with the following outcome:
I attached the files:
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 55 | |
| 53 | |
| 40 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 123 | |
| 108 | |
| 44 | |
| 32 | |
| 26 |