Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
I am trying to calculate YTD and PYTD measures.
As I want to show full months only, today my visual for YTD should end with the values by end of February 2024 and for PYTD with the values by end of February 2023...However, with the formula that I used it does not work as expected. So, the current month should be surpressed... What do I need to adjust in order to filter out the current month with the DAX below?
My formula is as follows:
Hi,
Do these measures work?
Measure = calculate(SUM(SALES_DATA[F GC / Sales Order Net Amount]),datesbetween(calendar[date],date(year(today()),1,1),eomonth(today(),-1)))
Measure1 = calculate([measure],sameperiodlastyear(calendar[date],"31/12"))
If not, then share the download link of the PBI file and show the expected result.
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information or anything not related to the issue or question.
If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
89 | |
88 | |
82 | |
64 | |
49 |
User | Count |
---|---|
125 | |
111 | |
88 | |
69 | |
66 |