Forum Discussion
COUNT rows with filter
- 2 years ago
Hi,
Assuming Inventory, Counted and Variance are measures that you have written, write this measure
Measure = countrows(filter(Values(Data[Product]),[Inventory]<>0&&[Counted]<>0&&[Valiance]=0))
Hope this helps.
Hi,
Assuming Inventory, Counted and Variance are measures that you have written, write this measure
Measure = countrows(filter(Values(Data[Product]),[Inventory]<>0&&[Counted]<>0&&[Valiance]=0))
Hope this helps.
- Oros2 years agoPost Prodigy
Hi Ashish_Mathur ,
Thanks you for your quick reply.
The Inventory, Counted and Variance are all measures. I noticed that your measure does not count the zeros correctly. Is it because the Inventory and the Counted have blank values?
- Ashish_Mathur2 years agoSuper User
You are welcome. If they have blanks, then why did you mention/show 0 in your original post. Try this revised measure
Measure = countrows(filter(Values(Data[Product]),[Inventory]<>blank()&&[Counted]<>blank()&&[Variance]=0))
- Oros2 years agoPost Prodigy
- Ashish_Mathur2 years agoSuper User
You are welcome.