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
jmcph
Helper III
Helper III

Count with Sum

Hi everyone! 

 

I am asking for help with some counting function, i have a table as follows: 

Name            Date                     Amount

ABC                1/1/2020            100
DEF                 1/5/2020            50
ABC                1/ 20/2020          60

I am trying to compute for how many Distinctcount NAME is less than 200 (amount) for January. The closest Count that i get from my dax measures was (2) which counted both amount as < 200. What i need it to do is for it to sum both values of the same month and give me a count of the name, which in this case should be One (1) only. 

 

What kind of measure should i use for this specific task? Any help and advice will be much appreciated!!! 

 

Thank you! 




1 ACCEPTED SOLUTION
v-lionel-msft
Community Support
Community Support

Hi @jmcph ,

 

Please refer to the formula.

v-lionel-msft_0-1601362632546.png

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

4 REPLIES 4
v-lionel-msft
Community Support
Community Support

Hi @jmcph ,

 

Please refer to the formula.

v-lionel-msft_0-1601362632546.png

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

ryan_mayu
Super User
Super User

@jmcph 

Not clear about your request.  ABC = 100+60, DEF=50, both are less than 200. So the value of measure is 2. Could you please elaborate your request?

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




amitchandak
Super User
Super User

@jmcph , You can use date Slicer for Jan 2002

 

Try a measure like

calculate(distinctcount(Table[name]), filter(Table, Table[Amount]<200))

 

Hardcoded Jan

calculate(distinctcount(Table[name]), filter(Table, Table[Amount]<200 && format(table[Date],"YYYYMM") ="202001"))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks! I already tried this measure, but it still shows the count of (2) but when i added Values(TableColumn) on the Filter then it shows the result that i wanted. Thanks again! 

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.

Top Solution Authors