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. Web Development
  3. ASP.NET
  4. How to access RDLC matrix subtotal value?

How to access RDLC matrix subtotal value?

Scheduled Pinned Locked Moved ASP.NET
questiontutorial
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.
  • J Offline
    J Offline
    JimFeng
    wrote on last edited by
    #1

    Hi, I have a matrix on RDLC report viewer as following: C1 C2 Total Cnt % Cnt % Cnt % R1 20 30 50 R2 50 50 100 Total 70 80 150 The Subtotal values in column and row are auto-calculated by the matrix object. How can I access the subtotal value 70, 80, 150 to calculate the % values?

    S 1 Reply Last reply
    0
    • J JimFeng

      Hi, I have a matrix on RDLC report viewer as following: C1 C2 Total Cnt % Cnt % Cnt % R1 20 30 50 R2 50 50 100 Total 70 80 150 The Subtotal values in column and row are auto-calculated by the matrix object. How can I access the subtotal value 70, 80, 150 to calculate the % values?

      S Offline
      S Offline
      Sandeep Mewara
      wrote on last edited by
      #2

      You can use the group names in totals to calculate. You could do something like - matrixcoltotal / matrixtotal. Your expression will look something like this. =Sum(Fields!ReportField.Value,"MatrixGroup")/Sum(Fields!ReportField.Value,"dataset"). Using fields as a real example... Assuming the name of the column group is WeekStartDate, something like the following should work: =iif(iif(isnothing(Sum(Fields!RMAs.Value,"WeekStartDate")),0,Sum(Fields!RMAs.Value)/Sum(Fields!RMAs.Value,"WeekStartDate"))=0,nothing,Sum(Fields!RMAs.Value)/Sum(Fields!RMAs.Value,"WeekStartDate"))

      J 1 Reply Last reply
      0
      • S Sandeep Mewara

        You can use the group names in totals to calculate. You could do something like - matrixcoltotal / matrixtotal. Your expression will look something like this. =Sum(Fields!ReportField.Value,"MatrixGroup")/Sum(Fields!ReportField.Value,"dataset"). Using fields as a real example... Assuming the name of the column group is WeekStartDate, something like the following should work: =iif(iif(isnothing(Sum(Fields!RMAs.Value,"WeekStartDate")),0,Sum(Fields!RMAs.Value)/Sum(Fields!RMAs.Value,"WeekStartDate"))=0,nothing,Sum(Fields!RMAs.Value)/Sum(Fields!RMAs.Value,"WeekStartDate"))

        J Offline
        J Offline
        JimFeng
        wrote on last edited by
        #3

        Thank you. I get idea.

        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