Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi All,
Need help with DAX formula to calculate productive store days with below sample data
Meaning of productive store days: >=10 units billed (of any Fruit) to a store on a day.
For below data, productive days will be 4 (A on 1st May, B on 1st & 4th May, C on 2nd May)
Thanks in advance.
| Store | Fruit | Date | Sales units |
| A | Apple | 1st May | 4 |
| A | Orange | 1st May | 2 |
| A | Banana | 1st May | 6 |
| A | Orange | 3rd May | 3 |
| A | Banana | 3rd May | 5 |
| B | Apple | 1st May | 12 |
| B | Orange | 4th May | 10 |
| B | Banana | 5th May | 5 |
| C | Apple | 2nd May | 6 |
| C | Banana | 2nd May | 4 |
| C | Apple | 5th May | 8 |
| C | Orange | 9th May | 3 |
| C | Banana | 9th May | 3 |
Solved! Go to Solution.
Hi @hcvora
You can try below measure.
productive store days =
COUNTROWS(
FILTER(
SUMMARIZE('Table','Table'[Store],'Table'[Date],"Units",SUM('Table'[Sales units])),
[Units]>=10
)
)
Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !
Thank you~
Hi @hcvora
You can try below measure.
productive store days =
COUNTROWS(
FILTER(
SUMMARIZE('Table','Table'[Store],'Table'[Date],"Units",SUM('Table'[Sales units])),
[Units]>=10
)
)
Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !
Thank you~
This worked! Thanks a lot.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 8 | |
| 8 |