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 dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Solved! Go to Solution.
Hi @AndreaCBS without file, model, logic... it is hard to spot issue.
Still, try v2 below
Avg v2=
VAR __max_date=MAX('Sales Invoices'[Date])
VAR X=
SUMX(
FILTER(
'Sales Invoices',
'Sales Invoices'[Date] < __max_date
),
'Sales Invoices'[AmountCRC]
)
RETURN
DIVIDE(X, [Quantity])
Proud to be a Super User!
Hi @AndreaCBS without file, model, logic... it is hard to spot issue.
Still, try v2 below
Avg v2=
VAR __max_date=MAX('Sales Invoices'[Date])
VAR X=
SUMX(
FILTER(
'Sales Invoices',
'Sales Invoices'[Date] < __max_date
),
'Sales Invoices'[AmountCRC]
)
RETURN
DIVIDE(X, [Quantity])
Proud to be a Super User!
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
12 | |
10 | |
6 |