Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register 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] )
)
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
10 | |
10 | |
10 | |
10 |
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |