Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
hcvora
New Member

Need help with DAX calculation

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.

 

StoreFruitDateSales units
AApple1st May4
AOrange1st May2
ABanana1st May6
AOrange3rd May3
ABanana3rd May5
BApple1st May12
BOrange4th May10
BBanana5th May5
CApple2nd May6
CBanana2nd May4
CApple5th May8
COrange9th May3
CBanana9th May3
1 ACCEPTED SOLUTION
xifeng_L
Super User
Super User

Hi @hcvora 

 

You can try below measure.

 

xifeng_L_0-1717290654446.png

 

 

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~

 

View solution in original post

2 REPLIES 2
xifeng_L
Super User
Super User

Hi @hcvora 

 

You can try below measure.

 

xifeng_L_0-1717290654446.png

 

 

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.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.