Forum Discussion
shaykoooo
Helper I
7 years agoCALCULATE and COUNTROWS
Hi,
If I am interested to count how many customers have purchased 250 $ and above, will the following measure do the trick?
Measure:= CALCULATE,(COUNTROWS(Fact_Table), Fact_Table[Sales_Amount]>=250)
Thanks!
If I am interested to count how many customers have purchased 250 $ and above, will the following measure do the trick?
Measure:= CALCULATE,(COUNTROWS(Fact_Table), Fact_Table[Sales_Amount]>=250)
Thanks!
Hi shaykoooo
If there's only one row per customer in your fact table then it would work. Otherwise it wouldn't.
Hi shaykoooo,
As AlB said, if your table is like below, the measure you mentioned should work.
If you still need help, please share some data sample which could reproduce your scenario so that we could help further on it.
Best Regards,
Cherry
2 Replies
- v-piga-msft
Resident Rockstar
Hi shaykoooo,
As AlB said, if your table is like below, the measure you mentioned should work.
If you still need help, please share some data sample which could reproduce your scenario so that we could help further on it.
Best Regards,
Cherry