Forum Discussion
April Update - Trend Lines
cmfisher82 There are several things that could be affecting the output, the relationships in the model, how you are using things in the visual...
Are you using two different counts? Each count as it's own measure?
What does the relationship look like in the model, is this all one table, are these counts in the same table and do they relate to the same date table?
Some of the above may be off-base, but suffice to say, I need a little bit more info on what your data looks like before I can try to figure out the issue.
Anonymous - I have two separate data extracts - one for items opened in the last 12 months and another for items closed in the last 12 months. In each dataset, I've wrote a DAX function to extract the week number. I have no relationship defined between week opened / week closed)(if I try, it says a relationship cannot be established because one column must have unique entries).
From the extracted week number, I have a clustered column chart. The axis for each column chart is week opened (or week closed) and the value is count of week opened (or count of week closed).
Now to combine the charts, the axis has to be either week opened or week closed. I've tried adding both count of week opened AND count of week closed in the value column, but that is what yields the incorrect information. I haven't been able to find a way to accurately show count of week opened and cound of week closed in the same chart.
Hopefully that makes sense.
- Anonymous10 years agoNot applicable
cmfisher82 Yep, makes sense. The issue you are experiancing are because you don't have any relationship. You could probably write up some Dax query to reference the other table, but a more straightforward way is to just create a date table. In this way, you can slice your information in whatever time slice you want.
Here is a simple blog I've pointed others too, there are many different ways to create date tables, so feel free to look for others if you don't like what you see. Essentially, you need one date to relate to both your tables, so the counts return correctly.
Build this table, create relationships between this table and both your opened and closed info, use the date/week from the new date table as your axis, and both counts should return as expected.
Side note, you may need to apply your dax week function to this table as well to get the Week Number. - take a look.