Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have a measure DoH derived from creation of Measure ( DoH = Stock / Avg. Usage)
and I want to count Product name at DoH< 10 = ? and DoH > 100 = ?
From example - DoH < 10 = 3
- DoH > 100 = 1
Solved! Go to Solution.
This is what I'm getting:
DoH =
DIVIDE(SUM('Table'[Stock]), SUM('Table'[Avg. Usage]))
Less than 10 =
CALCULATE ( COUNT ( 'Table'[Product name] ), FILTER ( 'Table', [DoH] < 10 ) )
More than 100 =
CALCULATE ( COUNT ( 'Table'[Product name] ), FILTER ( 'Table', [DoH] > 100 ) )
Proud to be a Super User!
Paul on Linkedin.
Hi @chanon ,
Whether the advice given by @PaulDBrown has solved your confusion, if the problem has been solved you can mark the reply for the standard answer to help the other members find it more quickly. If not, please point it out.
Looking forward to your feedback.
Best Regards,
Henry
Try:
Less than 10 =
CALCULATE(COUNT(Table[Product[), FILTER(Table, [DoH] <10))
More than 100 =
CALCULATE(COUNT(Table[Product[), FILTER(Table, [DoH] >100))
Proud to be a Super User!
Paul on Linkedin.
Thk for reply but didn't work. Due to DoH is Measure when i create count measure then result is 7.
This is what I'm getting:
DoH =
DIVIDE(SUM('Table'[Stock]), SUM('Table'[Avg. Usage]))
Less than 10 =
CALCULATE ( COUNT ( 'Table'[Product name] ), FILTER ( 'Table', [DoH] < 10 ) )
More than 100 =
CALCULATE ( COUNT ( 'Table'[Product name] ), FILTER ( 'Table', [DoH] > 100 ) )
Proud to be a Super User!
Paul on Linkedin.
@chanon ,
please try this,
1. DoH < 10,
count of product DoH < 10 = CALCULATE(COUNT('Table'[Product name]),FILTER('Table',[DOH]<10))
2.DoH >100,
count of product DoH > 100 = CALCULATE(COUNT('Table'[Product name]),FILTER('Table',[DOH]>100))
Thanks,
Arul
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
69 | |
55 | |
37 | |
35 |
User | Count |
---|---|
85 | |
66 | |
59 | |
46 | |
45 |