Forum Discussion
Power BI DAX command for QTD Line chart issue
datediff won't do you any good - months have different lengths.
Please provide sanitized sample data that fully covers your issue. If you paste the data into a table in your post or use one of the file services it will be easier to assist you. Avoid posting screenshots of your source data if possible.
Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523
Is it possible to provide the PBIX file attached for the dummy data. The major conflict is happening in this code, when i removed +1 that resolved the issue for the current month drop down but still happening with the May to June. Instead I am expecting cumulative growing numbers so there should not be any drop down. What other function can be used except DatedIFF.
Appreciate your assistance
Cumulative MQL Projection =
if(
max('date'[date]) < today(),
0,
if(
max('date'[date]) >= today() && max('date'[date]) <= eomonth(today(),0),
calculate(SUM('Global MQL Projection'[MQL Projection - Remaining Daily Average])) * (datediff(today(),min('date'[date]),day)),
calculate(sum('Global MQL Projection'[MQL Projection - Remaining Daily Average])) * calculate(sum('Date'[Day of Quarter]))
)
)
- lbendlin4 years ago
Super User
let go of the month concept and instead work with the individual dates in the quarter.
Use one of the internet file services to post your sample data.