Showing results for 
Search instead for 
Did you mean: 
ryan87 Frequent Visitor
Frequent Visitor

Issue plotting 2 MTD values on same visual



I am trying to create a graph showing sales MTD and order entry for the current month and I am able to create the 2 line graph visuals seperately and they work (as below in table format) however when I try to show both values on one graph, one of the values turns into a flat line showing the maximum value from the data (screenshot - both together). Do you have any ideas on why this is happening?


I have used the following formula to calaculate the MTD totals


SALES MTD = TOTALMTD(SUM(SOPInvoiceCredit[Sales]), SOPInvoiceCredit[DocumentDate])





3.PNGBoth togetherOrder Entry.PNGOrder EntrySales.PNGSales

Super User
Super User

Re: Issue plotting 2 MTD values on same visual

Hi @ryan87,


When you use a measure this is calculated based on context, when you add to this the time inteligence part of the measures the way the model is setup is crucial for you to have the right results.


As I can see from your data you have 2 date columns (one for each table) and only using one of them in the visual if you have the information linked to each other you will have issues with non-consecutives dates on your tables.


To solve this you need to create a calendar table and then make a relationship between this table and the other two then redo your measures to something like this

SALES MTD = TOTALMTD(SUM(SOPInvoiceCredit[Sales]), CalendarTable[Date])


To create the calendar table follow this link or just google Power BI Calendar table.





Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

ryan87 Frequent Visitor
Frequent Visitor

Re: Issue plotting 2 MTD values on same visual

Thanks @MFelix, we have also tried this with the same result so we have decided to start again with the date key before adding the SQL tables and see how we get on.



Helpful resources

Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 55 members 730 guests
Please welcome our newest community members: