Forum Discussion
CountIf in PB
- Anonymous6 years ago
Hi Anonymous ,
According to my understanding, you want to calculate the count per OrderID, right?
You could use the following formula:
CountPerOrderId = CALCULATE ( COUNTROWS ( 'CountIf' ), ALLEXCEPT ( CountIf, CountIf[OrderId] ) )My visualization looks like this:
For more useful information ,you could refer to: https://goodly.co.in/countif-power-bi-dax/
Is the result what you want? If you have any questions, please upload some data samples and expected output.
Please do mask sensitive data before uploading.
Best Regards,
Eyelyn Qin
Anonymous - According to Excel to DAX Translation: https://community.powerbi.com/t5/Community-Blog/Excel-to-DAX-Translation/ba-p/1060991
COUNTIF is here: https://community.powerbi.com/t5/Community-Blog/CO-CU-Excel-to-DAX-Translation/ba-p/1080018#M2077
And is:
COUNTX(FILTER(...)...) or CALCULATE(COUNT(),FILTER(...))