Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi all. Wish you a good day!
I would like to add a column to calculate the total of actual sales in my Target table. (by month & year as the Target table)
Current formula I am using as below:
Appreciates lot for your help!
Hi @ommfin123
Please try
Actual Sales =
CALCULATE (
SUM ( 'Sales Report'[Total] ),
FILTER (
ALL ( 'Sales Report' ),
'Sales Report'[Estimated Delivery Date] = RELATED ( 'SalesPlanning'[DATES] )
)
)
Dear @tamerj1 . Thank you for your help!
The formula is with no error but the results comes out were the total sales amount of the whole table.
I would like it to filter according to the SalesPlanning's monthyear date, may I know how should I do?
Thank you so much.
Please try
Actual Sales =
CALCULATE (
SUM ( 'Sales Report'[Total] ),
FILTER (
CALCULATETABLE ( 'Sales Report', ALL ( 'Sales Report' ) ),
'Sales Report'[Estimated Delivery Date] = RELATED ( 'SalesPlanning'[DATES] )
)
)
Or maybe is my tables' relationship linked wrongly?
I'm not sure too.
User | Count |
---|---|
14 | |
9 | |
7 | |
7 | |
6 |
User | Count |
---|---|
22 | |
11 | |
10 | |
10 | |
8 |