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 September 15. Request your voucher.
Hello everyone,
Trying to predict sales for current year. Already made measure: prediction (sales/number of days from the beggining of the year*365) - current sales.
I want to add this measure to my visuals, but the problem is, that calculations are made for all the older years, and i cant filter out only current year value (maybe it is realationship problem - invoice date -> auto calendar).
Idea what i want to do is this:
Thank you for help!
Include in your measure a check on the currently selected year, something like
Forecast measure = IF ( SELECTEDVALUE('Date'[Year]) = YEAR(TODAY()),
actual measure definition
)
User | Count |
---|---|
15 | |
13 | |
8 | |
6 | |
6 |
User | Count |
---|---|
24 | |
19 | |
12 | |
9 | |
7 |