+ Reply to Thread
Results 1 to 2 of 2

How to create a new calculated column in Excel - Getting data from SSAS model into an exce

  1. #1
    Registered User
    Join Date
    10-10-2019
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    2

    How to create a new calculated column in Excel - Getting data from SSAS model into an exce

    We are loading data from an SSAS model into an excel tabular form and we are trying to put information in a second column depending on the first one, In this case we have 2 fields coming from the SSAS: Amendment Amount and Record Date, we are trying to change the column Record Date depending on the information coming from Amendment date. It means, if Amendment amount comes empty from SSAS we have to put blank spaces in the column Record Date. In contrast, if some data comes in the amendment amount field we need to put the information coming from Record Date field It could be explained as a formula as well as follow:

    IF(PO[Amendment Amount] >0,PO[Record Date] )

    Question about amendment date:

    What is the best way for doing this kind of calculations? Notice that data is coming from SSAS into Excel tabular form
    Is there some conditional formatting available to apply in this case?
    Example: Is displaying information in Record Date column when we don't have amendment amount, it is wrong:

    po_number | Record_date | Amendment_amount

    A1 | 2019-05-03 |
    A2 | 2019-05-25 | 4350
    A3 | 2019-04-30 |
    a4 | 2019-04 08 | 2100
    We are looking for something like this: (if we have Total amendment Amount we show up Record date, else we show up blank spaces)

    results expected:
    po_number | Record_date | Amendment_amount

    A1 | |
    A2 | 2019-05-25 | 4350
    A3 | |
    a4 | 2019-04 08 | 2100
    Note : We do not want to do changes to the model (visual studio), we want to do changes on Excel, specifically on each Excel report as needed.

    One more thing : Amendment_Amount is a measure field coming from the model(visual studio) I tried to use a MDX calculated measure (OLAP tools) as follow, but it doesn't worked:

    IIF( ( Not(IsEmpty([Measures].[Amendment Amount])) AND [Measures].[Amendment Amount] >0 ), [PO].[Record Date], 1 )

    Some idea to solve it please?

    33333

    We are loading data from an SSAS model into an excel tabular form and we are trying to put information in a second column depending on the first one, In this case we have 2 fields coming from the SSAS: Amendment Amount and Record Date, we are trying to change the column Record Date depending on the information coming from Amendment date. It means, if Amendment amount comes empty from SSAS we have to put blank spaces in the column Record Date. In contrast, if some data comes in the amendment amount field we need to put the information coming from Record Date field It could be explained as a formula as well as follow:

    IF(PO[Amendment Amount] >0,PO[Record Date] )

    Question about amendment date:

    What is the best way for doing this kind of calculations? Notice that data is coming from SSAS into Excel tabular form
    Is there some conditional formatting available to apply in this case?
    Example: Is displaying information in Record Date column when we don't have amendment amount, it is wrong:

    po_number | Record_date | Amendment_amount

    A1 | 2019-05-03 |
    A2 | 2019-05-25 | 4350
    A3 | 2019-04-30 |
    a4 | 2019-04 08 | 2100
    We are looking for something like this: (if we have Total amendment Amount we show up Record date, else we show up blank spaces)

    results expected:
    po_number | Record_date | Amendment_amount

    A1 | |
    A2 | 2019-05-25 | 4350
    A3 | |
    a4 | 2019-04 08 | 2100
    Note : We do not want to do changes to the model (visual studio), we want to do changes on Excel, specifically on each Excel report as needed.

    One more thing : Amendment_Amount is a measure field coming from the model(visual studio) I tried to use a MDX calculated measure (OLAP tools) as follow, but it doesn't worked:

    IIF( ( Not(IsEmpty([Measures].[Amendment Amount])) AND [Measures].[Amendment Amount] >0 ), [PO].[Record Date], 1 )

    Some idea to solve it please?

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: How to create a new calculated column in Excel - Getting data from SSAS model into an

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Calculated Field in Pivot from Data Model
    By Gazsim in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 07-18-2019, 11:44 AM
  2. [SOLVED] Generate a calculated column to capture patient "Readmitted (Y/N)", in a data Model
    By kam77 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-09-2018, 04:50 PM
  3. Excel data model calculated fields
    By Gavinchap in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-28-2017, 05:37 PM
  4. Running Count in PowerPivot
    By efarkouh in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 10-07-2014, 10:33 AM
  5. Calculated Field When Using Data Model
    By efarkouh in forum Excel General
    Replies: 0
    Last Post: 10-06-2014, 03:57 PM
  6. Create a model that will generate a column of numbers based on model parameters
    By tncanoeguy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-01-2013, 05:47 PM
  7. How to create Pivot table with external source(SSAS Cube) via Excel Add-in
    By VenkatExcel in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-19-2009, 07:39 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1