Forum Discussion
Dynamic Measures
could you pls provide some sample data?
Hello ryan_mayu
I have given a sample set as asked by you.
I want to automate the Projection using DAX. Here, the Formula for November Projection is :
(Current Month Revenue)/(No. of Days elapsed in the current month) * (Total No. of days in the current Months)
For our case, it would be - 3000/3*30 = 30000
| Date | Company | Revenue |
| 31-07-2022 | Company_1 | 1000 |
| 31-08-2022 | Company_1 | 2000 |
| 30-09-2022 | Company_1 | 2000 |
| 31-10-2022 | Company_1 | 2500 |
| 03-11-2022 | Company_1 | 3000 |
| November Projection | Company_1 | 30000 |
So, what will be the DAX for the Projection of the current month?
Regards,
Aditya
- ryan_mayu3 years agoSuper User
Anonymous
maybe you can try this to create a measure
Measure = VAR _date=maxx(FILTER('Table',year('Table'[Date])=year(today())&&month('Table'[Date])=month(today())),'Table'[Date]) VAR _value=maxx(FILTER('Table','Table'[Date]=_date),'Table'[Revenue]) return _value/day(_date)*day(EOMONTH(_date,0)) - Ashish_Mathur3 years agoSuper User
Hi,
You may download my PBI file from here.
Hope this helps.
- Anonymous3 years agoNot applicable
Hello Ashish_Mathur and ryan_mayu ,
Thank you so much for your time and effort. Unfortunately, I am not able to populate the data using the formula given by you guys.
I have curated the DAX as per my tables, but when I am using the measure in any chart it gives blank values.
Do you have any clue why that might be happening?
Kindly help.Regards,
AJP- ryan_mayu3 years agoSuper User
pls share your pbix file