Forum Discussion

bryan_d's avatar
bryan_d
Regular Visitor
10 years ago
Solved

Help with counting

Hi there   I can't seem to get this to work - hoping you can help!   I have the following columns in a large table extracted from print logs:   DateGenerated     Time     Hour     Environment ...
  • Sean's avatar
    10 years ago

    bryan_d 

     

    Here's the example I created

     

    The result looks like this

     

    Here are the Measures I used

    LEGACY # = COUNTROWS(FILTER(Table1, Table1[Environment]="LEGACY"))
    LEGACY % = DIVIDE([LEGACY #], [TOTAL #], 0)
    NEW # = COUNTROWS(FILTER(Table1, Table1[Environment]="NEW"))
    NEW % = DIVIDE([NEW #],[TOTAL #],0)
    TOTAL # = [LEGACY #] + [NEW #]

     

    Hope this helps!