Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Need to calculate sales of a shop from start date of a shop.
I have 2 tables : Sales and Date
In Sales table I have information about volume of sales.
In Date table I have shop start date.
I have tried to use that code:
SWS comp =
CALCULATE(Sales[sales], [Start Date] >= [Start Date])
Solved! Go to Solution.
Try this once,
CALCULATE(SUM([Sales]), ALL(Tablename), [Startdate]>=MIN([Startdate]))
Total Sales =
VAR startdate = FIRSTDATE([Startdate])
CALCULATE(SUM([Sales]) , [Startdate] >= startdate)
There is an issue with syntax
Try this once,
CALCULATE(SUM([Sales]), ALL(Tablename), [Startdate]>=MIN([Startdate]))
Any other way?
If you have ID of shop or sales you can try this:
Total Sales = CALCULATE(SUM([Sales]) ,
FILTER('Tablename', [SalesID] = SELECTEDVALUE([SalesID]) &&
[StartDate] = MIN[StartDate] )
)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 7 | |
| 7 | |
| 7 |