an equation to calculate all possible combinations in a table of data

49 Views Asked by At

let's say we have a table with N rows and M columns. each field can be yes or no. lets' say number of yes fields are K. We want to calculate how many combinations of yes fields are in this table. like a subset of brute force. It can in form of factorial, combinations, permutations. etc.