The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 |
---|---|
28 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
35 | |
14 | |
12 | |
9 | |
7 |