Forum Discussion

AlainD's avatar
AlainD
Frequent Visitor
6 years ago
Solved

How to; Measure with dynamic count based on filters?

Hi, 

 

After receiving an answer to my question yesterday I ended up with many more questions. I appear to be stuck and not able to solve below. What I want is a Measure to count the amount of data in a Column and it should be dynamic when i change filters it should change accordingly.

 

When i simply add the column with the data in it into a visual it shows the same amount as the total amount of rows in the column. However i want it to only show the count of the values that have a 1 or "On Time" .

This is to show in two seperate cards On time performance and Late perfomance. 

 

When combining the on time performance in a Multiple card it does makes the split.

Please see example below.

 

  • AlainD you can easily add filter in your measure

     

    Base Count = COUNTROWS ( Table )
    
    On Time Count = CALCULATE ( [Base Count], Table[On Time/Late] = "On Time" )
    
    Late Count = CALCULATE ( [Base Count], Table[On Time/Late] = "Late" )
    

     

2 Replies

  • AlainD you can easily add filter in your measure

     

    Base Count = COUNTROWS ( Table )
    
    On Time Count = CALCULATE ( [Base Count], Table[On Time/Late] = "On Time" )
    
    Late Count = CALCULATE ( [Base Count], Table[On Time/Late] = "Late" )