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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello,
I have datamodel with two tables: factValues and dimDate. There are 2 relationships between the tables.
I want to create a measure, which will sum Value for each date by looking if it's between DateFrom and DateTo. My idea was to create measure as below, which unfortunetly does not work, because it consider only active relationship.
Wartość Brutto Magazyn =
CALCULATE (
SUM ( WAP_fStanMagazynowy[wartoscNaDzienBrutto] ),
AND(dDate[Date] >= MIN ( WAP_fStanMagazynowy[DataFrom] ),
dDate[Date] <= MAX ( WAP_fStanMagazynowy[DataTo] ))
)
Any advice? Many Thanks, Kamil
Solved! Go to Solution.
@Anonymous , the second link should have worked. That was measure-based, File for a table-based solution using my data, refer if that can help. Do not allocate
file attached after signature
@Anonymous , the expected output is not clear. Need example
but refer
or
Expected result is equivalent of the excel formula below, also presented on screen. (@Date is column J).
=SUMIFS(E:E;C:C;"<="&[@Date];D:D;">="&[@Date])
@Anonymous , the second link should have worked. That was measure-based, File for a table-based solution using my data, refer if that can help. Do not allocate
file attached after signature
Thanks Amit,
helpful as always, huge cheers! 🙂
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.