I'm having a list of orders and orderlines and would like to be able to Count the number of orders by different filters, e.g. by item, payer, warehouse. My issue is that i get the number of lines calculated. I've tried two different methods:
This:
=calculate(DISTINCTCOUNT([Ordernumber]))
And this other:
=calculate(COUNTROWS(SUMMARIZE('TableName';[Ordernumber])))