Forum Discussion
mejiaks
8 years agoFrequent Visitor
Trend line chart
HI I have a dataset with several rows showing 1 order per row I need to show a chart showing Total orders per week, something like this I have a measure that counts the orders on a se...
- 8 years ago
Try to create a calendar table
Then link your table with this calendar table.
Then remove one filter in your measure.
Orders Week = CALCULATE ( DISTINCTCOUNT ( TruckingData[OrderNO] ), FILTER ( TruckingData, TruckingData[RevType] <> "EREPO" ) ) + 0In the line chart, put the 'Dimdate'[weeoNo] as axis and the measure as value.
Eric_Zhang
8 years agoMicrosoft Employee
Try to create a calendar table
Then link your table with this calendar table.
Then remove one filter in your measure.
Orders Week =
CALCULATE (
DISTINCTCOUNT ( TruckingData[OrderNO] ),
FILTER (
TruckingData,
TruckingData[RevType] <> "EREPO"
)
)
+ 0
In the line chart, put the 'Dimdate'[weeoNo] as axis and the measure as value.
mejiaks
8 years agoFrequent Visitor
Tnx Eric_Zhang
Your solution works. I implemented my own though
I created a Calculated Column
Week 2 = WEEKNUM(TruckingData[Book Date])
and I did this with the chart
it displays the data as it should