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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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