Forum Discussion

Giavo's avatar
Giavo
Icon for Helper III rankHelper III
8 years ago
Solved

DAX measure SWITCH TRUE()

Hi everybody, i need your help with a DAX Measure. I have created this measure and it is working. (i have first created a count measure, and then my goal is to find on how many rows the count is more than 2)

Measure =
VAR
 sumCount =SUMX('Fact_Sheet_TAS Time Accounting'.[Count of TS_Status running total in Time_Week])
RETURN
SWITCH(TRUE().sumCount>2.VALUE(1).BLANK())



The fact is that on the Total columns i don't have the actual total but i have alway number 1 ? Do you know the Reason for this ?

2 Replies

  • Since you have used Value(1) in switch it will give as 1 if true....

     

    You can use COUTNROWS (FILTER( Table, [Count] > 2)).. Hope I am understanding ur requirement correctly