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.
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 |
---|---|
26 | |
10 | |
8 | |
6 | |
5 |
User | Count |
---|---|
33 | |
13 | |
12 | |
9 | |
7 |