The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I keep having problems to get the salesamount of LYTD
_YTD = TOTALYTD(SUM(Salesline[_Turnover]);Salesline[CONFIRMEDDLV])
_YTDLY = CALCULATE([_YTD]; SAMEPERIODLASTYEAR('Date'[Date]))
Initial this seems to be working.
But when I filter on a brand it gives salesamount for last year, but there were no sales for that brandtill september 2016.
Have to say that all saleslines are sliced on 1 specific status out of 6 statusses.
I assume Salesline[CONFIRMEDDLV] is date column and you have built the relationship between Salesline[CONFIRMEDDLV] and 'Date'[Date]. Your expression looks correct. Can you share your sample data?
Regards,
Thanks.
What would be the best way to share?
It are pretty big tables. The total pbix (including purch and invent) is 130MB
User | Count |
---|---|
77 | |
76 | |
36 | |
31 | |
29 |
User | Count |
---|---|
93 | |
79 | |
57 | |
48 | |
48 |