Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6603643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:02:33+00:00 2026-05-25T19:02:33+00:00

I want to generate ssrs report for that i need to select 4 values

  • 0

I want to generate ssrs report for that i need to select 4 values
PreviousNAV , TodaysNAV , @NetChange , @BAMLIndex

CREATE PROCEDURE [dbo].[Progreereport]
(
@EndDate DATETIME,
@ComparePeriod VARCHAR(10),
@PortfolioId VARCHAR(50) = '6'
)
AS
BEGIN

DECLARE @StartDate DATETIME =
    CASE
        WHEN @ComparePeriod = 'Daily' THEN dbo.DateUtility_MakeBusinessDay(DATEADD(DAY, -1, @EndDate), 'LessThanOrEqualTo')
        WHEN @ComparePeriod = 'Weekly' THEN dbo.DateUtility_GetRelativeDate(@EndDate, 'LessThan', 'End', 'Week', 1)
        WHEN @ComparePeriod = 'MTD' THEN dbo.DateUtility_GetRelativeDate(@EndDate, 'LessThan', 'End', 'Month', 1)
        WHEN @ComparePeriod = 'QTD' THEN dbo.DateUtility_GetRelativeDate(@EndDate, 'LessThan', 'End', 'Quarter', 1)
        WHEN @ComparePeriod = 'YTD' THEN dbo.DateUtility_GetRelativeDate(@EndDate, 'LessThan', 'End', 'Year', 1)
        WHEN @ComparePeriod = 'LTM' THEN DATEADD(MONTH, -12, @EndDate)
        WHEN @ComparePeriod = 'LTD' THEN CAST(Fireball_Configuration.dbo.GetConfigurationValue('Fireball', 'Concerto Credit Opportunity Master Fund I - Inception Date') AS DATETIME)
    END

  DECLARE @PreviousNAV DECIMAL(18,4)
  DECLARE @TodaysNAV DECIMAL(18,4)
  DECLARE @NetChange DECIMAL(18,4)
  DECLARE @BAMLIndex DECIMAL(18,4)

  SELECT ISNULL(@PreviousNAV,0) PreviousNAV 
  FROM Fireball..NAV
  WHERE Date = @StartDate and PortfolioId = @PortfolioId 

  SELECT ISNULL(@TodaysNAV,0) TodaysNAV 
  FROM Fireball..NAV
  WHERE Date = @EndDate and PortfolioId = @PortfolioId 

  SELECT @NetChange = (@TodaysNAV - @PreviousNAV ) 

  SELECT @BAMLIndex  = @NetChange / @TodaysNAV

  END
  GO

I need above four values to generate report
but help me to put it into table alias so that i can use it very easily…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:02:33+00:00Added an answer on May 25, 2026 at 7:02 pm

    Do you mean you want to return the items in a table?

    Do this after your current script:

    DECLARE @myData TABLE (
       PreviousNAV DECIMAL(18,4),
       TodaysNAV DECIMAL(18,4),
       NetChange DECIMAL(18,4), 
       BAMLIndex DECIMAL(18,4) 
    )
    
    INSERT @myData
    VALUES (@PreviousNAV, @TodaysNav, @NetChange, @BAMLIndex)
    
    SELECT * FROM @myData
    

    To return a single column of the four values, add this at the end of your stored procedure:

      SELECT @PreviousNAV as [Data] UNION
      DECLARE @TodaysNAV UNION
      DECLARE @NetChange UNION
      DECLARE @BAMLIndex 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to generate a report to accumulate the total stock quantity that has
I need to create a SSRS summary report which captures a lot of data
I want to generate a password reset token for a User model that I
After reserving a ticket for an travel agency, I want generate a printable report
I am developing a stored proc for an SSRS 2008 report, but I want
I want to generate a list from a table in my database. That list
I want generate static pages from database. What is a better suggestion that a
I want to generate PDF files or convert the existing PDF files that uses
Want to generate page events( pageload() ) in jsp is that possible? How to
I want to use hipay in my site. So i need generate a xml

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.