Forum Discussion
Difficulty pulling data onto Line Chart
Can you provide some sample data or pbix file?
- krnfds2 years agoRegular Visitor
Unfortunately, I cannot provide the whole file 😞
The backlog qty column looks like this where it shows a specific order. The cell is blank if it is not backlogged.
The x axis of the line chart uses this dax expression:
Backlog Qty. = COUNT ( 'PPIOO000_P34'[Backlog Qty] ) + 0The y axis uses this:Backlog Calendar =VAR StartDate = DATE(2021, 1, 1)VAR EndDate = DATE(2024, 12, 31)VAR DateRange = ADDCOLUMNS(CALENDAR(StartDate, EndDate),"WeekDay", WEEKDAY([Date], 2))RETURNFILTER(DateRange,[WeekDay] = 1)Please let me know if you need additional info or have other questions!- xifeng_L2 years agoSuper User
I think you should change the table structure to the following, keeping a snapshot on each Monday.
Day Backlog Qty 4/1/2024 xxxxx
xxxxx
xxxxx
4/2/2024
xxxxx
xxxxx
xxxxx
4/3/2024
xxxxx
xxxxx
xxxxx
...
... Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !
Thank you~
- krnfds2 years agoRegular Visitor
Sorry, I don't fully understand. How would I keep a snapshot automatically?
Are you saying I should change my date table to show every day?
This is what my date table looks like where it spans all the way to the end of 2024.