Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. COUNT PROBLEM

COUNT PROBLEM

Scheduled Pinned Locked Moved Database
databasehelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    member27
    wrote on last edited by
    #1

    Hi all, Iam wrking in sql reporting services .In that i want to find the COUNT OF male and female in report .I have used an expression fielD to find count of male and female but it returnS both the count of male and female ..IE (TOTAL ROWS VALUE) I have pasted my expression FIELD =Count(Fields!GENDER.Value="MALE") =Count(Fields!GENDER.Value="FEMALE") PLS ANY ONE GIVE SOLUTION FOR THIS

    R 1 Reply Last reply
    0
    • M member27

      Hi all, Iam wrking in sql reporting services .In that i want to find the COUNT OF male and female in report .I have used an expression fielD to find count of male and female but it returnS both the count of male and female ..IE (TOTAL ROWS VALUE) I have pasted my expression FIELD =Count(Fields!GENDER.Value="MALE") =Count(Fields!GENDER.Value="FEMALE") PLS ANY ONE GIVE SOLUTION FOR THIS

      R Offline
      R Offline
      RGTuffin
      wrote on last edited by
      #2

      could you use =SUM(IIF(fields!GENDER.value = "MALE", 1, 0)) =SUM(IIF(fields!GENDER.value = "FEMALE", 1, 0))

      M 1 Reply Last reply
      0
      • R RGTuffin

        could you use =SUM(IIF(fields!GENDER.value = "MALE", 1, 0)) =SUM(IIF(fields!GENDER.value = "FEMALE", 1, 0))

        M Offline
        M Offline
        member27
        wrote on last edited by
        #3

        Thanx a lot .it worked well

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups