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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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! 🙂
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 104 | |
| 82 | |
| 72 | |
| 46 | |
| 35 |