Forum Discussion
SRA
4 years agoRegular Visitor
QTD for Financial Dashboards
Hi,
I'm somewhat new to Power BI and I'm working on a financial dashboard. I would like to show the metrics in MTD, QTD and YTD. The data has budget, actual, forecast and plan. I did create a calendar table and have a relationship from the calendar table to the data table. I've spent the past few days looking at tutorials and reading books and I still can't find out how to write the code to show the correct metrics for MTD, QTD and YTD. Does anyone know how to creat the code?
Thanks in advance.
SRA
First create aggregation for your Value Column like
Total Value = Sum([Total Value])
if the value from multiple columns it must be sumxMTD = Calculate ([Total Value], DATESMTD(DateDim(Date))
QTD will use DATESQTD
YTD will use DATESYTD