Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hello, Wonderful community. I am trying something interesting here and wanted your approach. So we have a dynamic formula that calculates the number of months already passed in the financial year. Then it can multiply this number with a monthly value to get the YTD target.
So my financial year starts in April. If this value we need is in a column, how best would one go around that.
@Datagulf , Try with help from time intellignece and date table
YTD Months= CALCULATE(distinctcount('Date'[Month Year]),DATESYTD('Date'[Date],"03/31"))
MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))
Target = [MTD Sales] * [YTD Months]
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.
Hey, @amitchandak , thanks, though the MTD Sales return Blank. No idea why. I have connected the Date table to the data. No errors..
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
87 | |
81 | |
53 | |
38 | |
35 |