Forum Discussion
DAX help - counting single item lines
- 1 year ago
Hi Si_7777 , Thank you for reaching out to the Microsoft Community Forum.
We took sample data based on your scenario and recreated your matrix structure with Year -> Date -> PO Number. We rewrote the 1 Items per PO measure to first identify POs that have exactly one distinct item, then count them in the current filter context. This ensures the count is accurate at PO, daily and yearly levels without double-counting.
Please check the attached .pbix file for your reference and share your thoughts.
Thank you.
Hi Si_7777 , Thank you for reaching out to the Microsoft Community Forum.
We took sample data based on your scenario and recreated your matrix structure with Year -> Date -> PO Number. We rewrote the 1 Items per PO measure to first identify POs that have exactly one distinct item, then count them in the current filter context. This ensures the count is accurate at PO, daily and yearly levels without double-counting.
Please check the attached .pbix file for your reference and share your thoughts.
Thank you.