Forum Discussion
Distinct Net Value From Deliveries
- 2 years ago
Net Val = SUMX(FILTER(SUMMARIZE('Delivery Tracking',[Delivery],[Act. Gds Mvmnt Date],[Net Value]),FORMAT([Act. Gds Mvmnt Date],"yyyymm")=FORMAT(TODAY(),"yyyymm")),[Net Value]) - 2 years ago
FORMAT([Act. Gds Mvmnt Date],"yyyymm")=FORMAT(TODAY(),"yyyymm")We are comparing the YearMonth of your data against the YearMonth of the "current" month, ie today's month.
this is working but can you explain how it is only selecting the current month year? I would like to get a better understanding.
Thanks again
FORMAT([Act. Gds Mvmnt Date],"yyyymm")=FORMAT(TODAY(),"yyyymm")
We are comparing the YearMonth of your data against the YearMonth of the "current" month, ie today's month.
- GMadd2 years ago
Helper I
Ok one more question. I thought I could figure it out but just can't. Just as I asked for the net value I need a total count of deliveries shipped for current month. Data is below and it should show four deliveries shipped in March (current month).
Delivery Act. Gds Mvmnt Date 88029082 2/29/2024 88029067 2/29/2024 88029065 2/29/2024 88029051 2/29/2024 88029008 2/29/2024 88028983 2/29/2024 88028982 2/29/2024 88028980 2/29/2024 88028975 2/29/2024 88028955 2/29/2024 88027883 2/29/2024 88030339 2/29/2024 88024733 3/1/2024 88030531 3/4/2024 88030531 3/4/2024 88030531 3/4/2024 88031827 3/4/2024 88031827 3/4/2024 88031827 3/4/2024 88031827 3/4/2024 88031827 3/4/2024 88031827 3/4/2024 88031742 3/4/2024 88031742 3/4/2024 88031742 3/4/2024 88031742 3/4/2024 88031742 3/4/2024 - lbendlin2 years ago
Super User
You can use the implicit "Count (Distinct)" in the visual for that, or implement the same in the formula explicitly.
- GMadd2 years ago
Helper I
Right I am using this below to get the distinct count of deliveries but can't seem to restrict it to the current month.
Count of Deliveries Shipped = DISTINCTCOUNT('Delivery Tracking'[Delivery])