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!
Hello All ,
I need your help with below measure . I want to display the sum of sales between start date and end date as below but somehow iam not able to get desired result.
Measure=
var a=selectedvalue(DateTable[Date])
var b=a-6
var c=calculate(Sum(Data[sales]),DATESBETWEEN(Data[Approval Date],b,a)
return c
some how i was able to get sales only for end date a.
Please help with the solution for this.
TIA
Solved! Go to Solution.
HI @Anonymous ,
Check the table relationship, when there is a relationship between the data table and the date table, the measure is invalid.
And you could download my pbix file to check your file.
Did I answer your question? Mark my post as a solution!
Best Regards
Lucien
HI @Anonymous ,
Check the table relationship, when there is a relationship between the data table and the date table, the measure is invalid.
And you could download my pbix file to check your file.
Did I answer your question? Mark my post as a solution!
Best Regards
Lucien
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 |
|---|---|
| 70 | |
| 51 | |
| 42 | |
| 29 | |
| 22 |
| User | Count |
|---|---|
| 142 | |
| 121 | |
| 56 | |
| 37 | |
| 32 |