Forum Discussion
psilos24
5 years agoHelper I
Measure Problem - Matrix,count if has at least value.
Hello guys,
I would like to create a measure and I have tried different techniques but with no luck.
I want to create a measure to count the number of rows based on the following criteria:
- If Period1 has at least a value and period2 has at least value to count
OR
- If Period2 has at least a value and period3 has at least value to count
OR
- If Period1 has at least a value and period3 has at least value to count
For the example shown below, the answer should be 5 (highlighted rows).
8 Replies
- ryan_mayuSuper User
is this what you want?
Measure = VAR _count=DISTINCTCOUNT('Table (2)'[Period]) return if(sumx(VALUES('Table (2)'[Period]),_count)>1,1, sumx(VALUES('Table (2)'[Period]),_count))i think this will affect both column total and row total.