Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi , I'm very struggling on calculated the data using MTD performance,
i would like to compared MTD in monthly to see the real performance.
What i'm having right now is always showing MTD data vs. Whole month last year , which is not right as expected.
can you share me the right formula ?
ie. From 01st Jan to 21st Jan 2024 vs. 01st Jan to 21st Jan 2023
Thank
hello @Chanleakna123
you can use this measure :
or you can use :
let me know if it works for you .
If my response has successfully addressed your issue kindly consider marking it as an accepted solution! This will help others find it quickly. Dont forget to hit thumbs up buttton 👍
it's accumulated each other , which is not right
if you want the same day last year,
then modify the measures to this :
or you can use :
let me know if this works for you .
if it still doesnt work, plesae share a sample of your pbix file to take a closer look .
best regards,
@Chanleakna123
Follow the same pattern as per this formula:
MoM =
VAR __CM = [Sales Amount]
VAR __Period = DATEADD( DATESBETWEEN( 'Date'[Date] , MIN( 'Date'[Date] ) , MAX( 'Sales'[Order Date] ) ) , -1 , YEAR )
VAR __LYSM = CALCULATE( [Sales Amount] ,__Period )
RETURN
__CM - __LYSM
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Not reflect to what i need ,
when i do this calculate , it show my MTD is in Negative .
i may need MTD this year vs. MTD last year , with the same period day
@Chanleakna123
This is what exactly the formula that I shared does,
Sharing a dummy Power BI file representing your scenario would be beneficial. You can save the Power BI file on Google Drive or any other cloud storage platform and provide the link here. Kindly ensure that permission is granted to open the file.
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
you can check on the MOM forlmula , seems like not as needed.
i would like to have the same period in Last year to be shown next to it.
@Chanleakna123
Without looking at your data model, the exisitng measures and how you are trying to implmenet this measure, it's hard to suggest a solution. Create a small Power BI file representing you scenario and share it using google drive or any other sharing option.
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
User | Count |
---|---|
98 | |
78 | |
77 | |
49 | |
26 |