Forum Discussion
bidataservices
3 years agoFrequent Visitor
COUNTIFS in DAX
Can anybody please help with a DAX question. I have a report in Excel that counts the items that make up an invoice. I have atached a screenshot with the Excel formula highlighted. I am trying to rec...
tamerj1
3 years agoCommunity Champion
Hi bidataservices
Please refer to attached sample file with the solution
Item Count =
IF (
'Table'[InvoiceType] <> "Item",
COUNTROWS (
CALCULATETABLE (
'Table',
'Table'[InvoiceType] = "Item",
ALLEXCEPT ( 'Table', 'Table'[Document], 'Table'[Item], 'Table'[City] )
)
) + 0
)bidataservices
3 years agoFrequent Visitor
Thanks, that worked well.
What if I wanted to do a SUMIFS on sales?