Hi Power BI Community!
I want to show a cumulative chart after what delivery time span all deliveries had reached the customers.
At first the chart looks fine but the line must always go up because it should add the numbers. So the fram of 10-15 must be bigger than 5-10 and so on.
Here is my calculation:
On values:
Total PO is just
Solved! Go to Solution.
@Beginner_2020 , I think this because of sorting issue. I am assuming you have also created a sort column as I can see 10-15 at the correct position
do this on sort column
Cumulative PO to delivery =
CALCULATE([Total PO],
FILTER(ALLSELECTED(TrackET),
TrackET[Delivery time frame sort]<= MAX(TrackET[Delivery time frame sort])))
where sort would be like
Delivery time frame sort =
var _diff = datediff([PO Date] , [delivered on],DAY)
return
Switch ( True() ,
_diff <= 2, 1 ,
_diff <= 5, 2 ,
_diff <= 10, 3 ,
_diff <= 15, 4 ,
_diff <= 30, 5,
6
)
what is sort column - https://www.youtube.com/watch?v=KK1zu4MBb-c
Proud to be a Super User!
@Beginner_2020 , I think this because of sorting issue. I am assuming you have also created a sort column as I can see 10-15 at the correct position
do this on sort column
Cumulative PO to delivery =
CALCULATE([Total PO],
FILTER(ALLSELECTED(TrackET),
TrackET[Delivery time frame sort]<= MAX(TrackET[Delivery time frame sort])))
where sort would be like
Delivery time frame sort =
var _diff = datediff([PO Date] , [delivered on],DAY)
return
Switch ( True() ,
_diff <= 2, 1 ,
_diff <= 5, 2 ,
_diff <= 10, 3 ,
_diff <= 15, 4 ,
_diff <= 30, 5,
6
)
what is sort column - https://www.youtube.com/watch?v=KK1zu4MBb-c
Proud to be a Super User!
Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.
User | Count |
---|---|
445 | |
160 | |
113 | |
52 | |
52 |
User | Count |
---|---|
459 | |
142 | |
130 | |
78 | |
71 |