Forum Discussion
Anonymous
8 years agoNot applicable
Count all function not influenced by date
Hi, Hi, I am trying to calculate the total lines backlog in the relating table not influenced by any date. Backlog is a filter on OTD category. This DAX function which is active now (output ...
- 8 years ago
Hi Anonymous,
You could have a try with the formula below.
Total_Lines_Backlog = CALCULATE ( COUNT ( PD_vs_shipped_date[Item_Number] ), FILTER ( ALL ( PD_vs_shipped_date ), PD_vs_shipped_date[OTD_category] = "Backlog" ) )If you still need help, please share some data sample and your desired output so that we can help further investigate on it?
Best Regards,
Cherry
- 8 years ago
Hi,
Try this measure
=CALCULATE(COUNT(PD_vs_shipped_date[Item_Number]),PD_vs_shipped_date[OTD_category] = "Backlog",ALL(Calendar))
I have assumed that:
- There is a Calendar Table
- There is a relationship from the Date column of your PD_vs_shipped_date Table to the Date column of your Calendar Table
- In the Calendar Table, you have the YearMonthnumber column
- In your visual, you will drag the YearMonthnumber field from the Calendar Table
Ashish_Mathur
Super User
8 years agoHi,
Try this measure
=CALCULATE(COUNT(PD_vs_shipped_date[Item_Number]),PD_vs_shipped_date[OTD_category] = "Backlog",ALL(Calendar))
I have assumed that:
- There is a Calendar Table
- There is a relationship from the Date column of your PD_vs_shipped_date Table to the Date column of your Calendar Table
- In the Calendar Table, you have the YearMonthnumber column
- In your visual, you will drag the YearMonthnumber field from the Calendar Table