Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Please i need some help. I am trying to create a MTD measure in my report.
I am extremely new with DAX and power bi.
I was thinking that i was doing it correctly, however, i have some stores that are no longer active on November but stil shows MTD figure, i dont know why 😞
MTD Sales = TOTALMTD(sum(CVR[Functional Sale Value]) , CVR[Full Date]) have also tried using my DateDim table
MTD Sales = TOTALMTD(sum(CVR[Functional Sales Value]), DateDim[Date]).
I am close to being so frustrated about this 😞
Thank you in advance.
Solved! Go to Solution.
@Sachet_716,
You would need to add Month field or Date field to your visual. For more details about how TOTALMTD function works, please review this article: https://msdn.microsoft.com/en-us/library/ee634560.aspx.
Regards,
Lydia
@Sachet_716,
Please share sample data of your table and post expected result in table format. You can upload sample data to OneDrive and post shared link here.
Regards,
Lydia
Based on your requirements it looks like you have chose the correct function so you are heading in the right direction ... https://msdn.microsoft.com/en-us/library/ee634560.aspx.
As a next step please show the relationship within a screen shot of the relationship diagram between your CVR measure / fact table and your DateDim dimension.
https://docs.microsoft.com/en-us/power-bi/desktop-create-and-manage-relationships
Hello @Kieran,
Here is my table. I am expecting that the 2 stores which i highlighted will appear since i need MTD data, without doing any filters. However, whenever i choose 'November' in my slicer, it gives me the correct data.
I might be doing it wrong?
Thank you.
Cris
@Sachet_716,
You would need to add Month field or Date field to your visual. For more details about how TOTALMTD function works, please review this article: https://msdn.microsoft.com/en-us/library/ee634560.aspx.
Regards,
Lydia
Thank you Lydia. 🙂
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 43 | |
| 39 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 68 | |
| 63 | |
| 31 | |
| 30 | |
| 23 |