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.
I am creating a New Customers Sales Rolling measure by creating a summarize table in dax:
The CustomerOrdersFinal table from the above measure looks like this:
In the last line of the dax measure I am referring to rolling column, but when I am doing a simple graph, it seems data from SalesByYear are taken into consideration:
What am I doing wrong?
File to download: https://drive.google.com/file/d/12sVJPAB-3xC1B8EWRoX5-uDKRFP3VxMo/view?usp=sharing
you may be overcomplicating things a little. Try this
New Customers Sales running total =
var o = FILTER(ALLSELECTED(Orders[Klient_Nazwa]),calculate(DISTINCTCOUNT(Orders[ ID Zamówienia]))<3)
var y = max('Calendar'[Year])
return CALCULATE(sum(Orders[Sprzedaż]),'Calendar'[Year]<=y,Orders[Klient_Nazwa] in o)
User | Count |
---|---|
16 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
12 | |
8 | |
8 |