Error about using a concatenated calculated column in a SSAS Tabular model

Hi,
in a my tabular model I've added in a dimension table a calculated column concatenating a code and a description. The code is used to create a relation between a fact table and this dimension table.
When I try to use the tabular model inside Excel and select the concatenated column as a filter I've this error message:
I've tried to recalculate some times the tabular database after the deployment of the model changes and I've tried to run a full process of the entire database but any results.
Any suggests to me in order to solve this issue, please?
Thanks

Hi, I've solved. The concatenate formula was with "+" operator and not "&".
But during the column creation I've any errors also if the model in SSDT was empty.
Bye

Similar Messages

  • Cell Coloring using DAX in SSAS Tabular Model

    HI All, 
    I need to implement  background and foreground cell coloring in SSAS Tabular Model using DAX or any other feasible solution similar to what Cell Properties does with MDX which is supported by SSAS Cubes. 
    Request the gurus to help me with this problem.
    Thanks 
    ET

    Hi Et,
    As Marco said, this feature is not supported in current version. If you have any concern about this behavior, you can submit a feedback at
    http://connect.microsoft.com/SQLServer/Feedback and hope it is resolved in the next release of service pack or product. Your feedback enables Microsoft to make software and services the best that
    they can be, Microsoft might consider to add this feature in the following release after official confirmation.
    Thank you for your understanding.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Dynamic security using Security table in SSAS Tabular model

    Hi, 
    Platform : SSAS Tabular model (VS 2010)
    I need to apply Dynamic security using Security table(manually created) in Tabular model, Need to apply filter for 2 tables. I am able to
    create roles in Tabular model using USERNAME() and LOOKUP() function it worked fine. But the problem is when i am trying to give full access for a particular column and limit the access in other column, it is not working properly.
    Please find below table and guide me where i am falling short. In the Security table wherever you find ALL it means full access.
    Security table
    Login Name
    Dim_Country
    Dim_Customer
    DOMAIN\User1
    ALL
    2
    User1 should see all countries but Only 2,4 Customers
    DOMAIN\User1
    ALL
    4
    DOMAIN\User2
    2
    ALL
    User2 should see all customers but Only 2,3 countries
    DOMAIN\User2
    3
    ALL
    DOMAIN\User3
    ALL
    ALL
    User3 should see all Customers and Countries
    DOMAIN\User4
    1
    3
    User4 should see 1 Country and 3 Customer
    ALL - means NO restriction
    Numeric values indicate the Dimension IDs
    Do let me know if further explanations required.
    Thanks,
    Sundar

    Hi Sundar,
    According to your description, you want to implement dynamic security using Security table in SQL Server Analysis Services Tabular model, right?
    It is very common to have data security implementation in BI projects either at databases or Cubes and sometimes this security implementation and maintenance goes out of control due to the dynamic flow of business information. Here are some links which describe
    dynamic security implementation at SSAS tabular model using an external security table, please see:
    http://bipassion.wordpress.com/2012/10/01/ssas-tabular-dynamic-security/
    http://www.bidn.com/blogs/ChrisSchmidt/ssas/4332/dynamic-security-in-tabular
    Regards,
    Charlie Liao
    TechNet Community Support

  • SSRS Parameters using SSAS Tabular model get cleared

    I have an SSRS report that uses data from a SSAS Tabular model.  In the query designer, from the calendar dimension I choose a "Date Inclusive" filter and make it a parameter. I also choose to add another filter using and Organisation Unit
    dimension and also make this a parameter. The report is written and deployed to a SharePoint 2013 library.
    Most of the time, the report runs as expected with the parameters cascading off each other as expected.  However, occasionally, parameters get cleared (either after changing a single value such as the Org Unit selection or sometime whilst the report
    is being rendered). Sometimes you cannot select a value from the available values - you need to navigate somewhere else and then start over.
    I changed the data source for the parameters to use SQL queries that return the same values as the MDX queries and the probably seems to have gone (time will tell)
    This report has a child (detail) report that has one extract parameter.  This parameter happens to have over 1,000 values.  With the change of the parent report, you are now able to get to the child report.  However, the child report seems
    to exhibit the same problem with the parameters being cleared - and with a much higher frequency.
    So, that leaves me wondering whether
    anyone else has experienced this ?
    is this an issue with SSRS 2012 and SSAS Tabular models (I have not seen this behaviour before and I have been using SSRS (since version 1) and SSAS Multi-dimensional (from when it was called "OLAP Services") ?

    We applied SQL Server 2012 Service Pack 2 to the SharePoint farm (the SP Admin needed to re-create the service applications) and the problem is fixed

  • SharePoint Designer 2010 Error occurs when accessing Edit Form: "The server returned a non-specific error when trying to get data from the data source ..." This occurs when using "" in a calculated column in a SharePoint List

    I created a calculated column "Expiration Date" in SharePoint 2010 with formula, =IF([Contingent Hire]=TRUE,(Created+90),(IF([Contingent Hire]=FALSE," ")))
    This works in the SharePoint list but when I go to edit the Edit Form in Designer. I get the error specified in the title of this post. I'm trying to make it so the Expiration Date is blank when another column, "Contingent Hire" (a YES/No
    column) is FALSE.
    The Edit Form is essentially a DataViewWebpart. If I remove the " ", like so, "(IF([Contingent Hire]=FALSE,))" from the calc column, the error goes away; however, the Expiration Date field does not
    remain blank like I want it to.
    Does anyone have any suggestions? (Below is the error generated when I open Designer and then try to open the Edit form for the corresponding list containing the calc column)
    JackSki123

    Hi Jack,
    Could you provide a screenshot about this issue?
    As Dimitri suggested, you can install the update for your SharePoint Designer and check again.
    And you can also check if you can display "NA" instead of " " in your calculated column per the following post.
    http://rajeshspillai.blogspot.in/2012/03/server-returned-non-specific-error-when.html
    Thanks
    Daniel Yang
    TechNet Community Support

  • Error when using filter on date column in interactive report

    Hi,
    I'm getting the following error when using the filter on a date column. None of the criteria in the filter list work. All give me the same error but when I use the filter on a column feature (in the search bar) and use ">" and "<" those work.
    Can someone please help me????
    " Settledate is in the last 2 years
    ORA-30175: invalid type given for an argument ORA-02063: preceding line from MAINDATA "

    I have a similar problem . I have an interactive report based on resultset stored in a collection; since all the columns of a collection are of string datatype, I convert the columns to appropriate datatypes before its returned to the user; everything works as desired except when I try to filter on a data column , I get a ORA-01858: a non-numeric character was found where a numeric was expected .
    I turned on debug mode and am copying the output here , column c009 which is aliased to 'C' is the one that I am trying to apply the filter on
    select
    ROWID as apxws_row_pk,
    "C001",
    "C002",
    "C003",
    "C004",
    "C005",
    "C006",
    "C007",
    "C008",
    "CHECKOUTTIMESTAMP",
    "C010",
    "C011",
    "TO_NUMBER(C012)",
    "TO_NUMBER(C013)",
    "TO_NUMBER(C014)",
    "C015",
    "C016",
    "C017",
    "TO_NUMBER(C018)",
    "C",
    count(*) over () as apxws_row_cnt
    from (
    select * from (
    Select c001,c002,c003,c004,c005,c006,c007,c008,to_date(c009,'dd-MON-yy HH24.MI') checkouttimestamp,
    cast(to_date(c009,'dd-MON-yy HH24.MI') as timestamp) c,
    --TO_TIMESTAMP(c009,'dd-MON-yy HH24.MI') c1 ,
    trunc(to_date(c009,'dd-MON-yy HH24.MI')) checkoutdate,
    c010,c011,to_number(c012),to_number(c013), to_number(c014),c015,c016,c017,to_number(c018) from apex_collections where collection_name = 'IR_BOOKSALES'
    ) r
    where ("C" between systimestamp - ((1/24) :APXWS_EXPR_1) and systimestamp)*
    ) r where rownum <= to_number(:APXWS_MAX_ROW_CNT)
    order by ROWID
    0.04: IR binding: ":APXWS_EXPR_1"="APXWS_EXPR_1" value="1"
    0.04: IR binding: ":APXWS_MAX_ROW_CNT"="APXWS_MAX_ROW_CNT" value="2000"
    ORA-01858: a non-numeric character was found where a numeric was expected
    I have tried to convert c009 to date, timestamp and timestamp with time zone datatypes ; they all return the same error ,but all 3 datatypes work fine with systimestamp when I run them in sqlplus. Any help would be appreciated.

  • Named Calculation Column in DSV - SSAS Cube (2012)

    Hi,
    I have a question on creating named calculation (derived column) in data source view of SSAS 2012 Cube. Below scenario :
    If i am writing an expression in Fact table (say, creating named calculation column, "X" in this fact table) then is it possible to have a case statement based on the condition from one of the dimension data ?
    For ex., one my dimension "KC_Dim" contains column "KC_Code" on which i want to have a condition something like below:
    Case
    When KC_DIM.KC_Code = "-" 
    Then 0
    Else FactTable.Measure
    End 
    how to achieve this specially because i am writing it in fact table but the condition mentions dimension columns which it is giving error "could not find the dimension column"
    any idea ?
    Thanks

    Hi UltraDev,
    For the first questions "is it possible to have a case statement based on the condition from one of the dimension data ?"the answer is yes. The expresion for the named calculation should be a valid SQL expresion. So just the Case statement should be specified,
    like:
    Case [Month]
    When 1 Then 'January'
    When 2 Then 'February'
    End
    Then the SQL expression can refer to other tables in the data source view. You can refer to the link below to see the detail information.
    Define Named Calculations in a Data Source View (Analysis Services)
    Introduction to Named Calculations in SQL Server Analysis Services
    Regards,
    Charlie Liao
    TechNet Community Support

  • Error while importing data in SSAS Tabular Model

    I am new to the concept Tabular Model in SSAS 2014.
    I am trying to create one tabular model based on Adventureworks DW 2014.
    I am getting below error while importing tables to create model.
    "OLE DB or ODBC error: Login failed for user 'ASIAPAC\CSCINDAE732028$'.; 28000.
    A connection could not be made to the data source with the DataSourceID of '98c2d415-1e84-469c-a170-2bcacd779c1a', Name of 'Adventure Works DB from SQL'.
    An error occurred while processing the partition 'Customer_65240c88-55e7-416c-a7ac-732dece8be8e' in table 'Customer_65240c88-55e7-416c-a7ac-732dece8be8e'.
    The current operation was cancelled because another operation in the transaction failed."
    But while creating the Datasource, it has created successfully (below img)
    But while importing the facing the below error.
    Note:
    I have multiple instances in my system with unique names.
    Is this causing any ambiguity issues in selecting right instances?

    Hi Naveen,
    Based on your screenshots, you fail to open a connection to the data source. Right?
    In this scenario, the first screenshot you post is for creating a connection to server with the current windows authentication, not for connecting a data source. So the "Test Connection succeed" means your current windows user can connect
    to server, not connect to the database your selected in the dropdown list. Then you click next, you can choose account to access the data source. Based on the information, your service account "'ASIAPAC\CSCINDAE732028$" doesn't have permission to
    access the database you selected. Please grant the permission for the service account in SSMS.
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou
    If you have any feedback on our support, please click here.

  • Some error about use AGAL

    from the document, the VS and PS have 8 temporary registers (vt0 - vt7 / ft0 - ft7).
    when i use vt7 or ft7 in my shader, the flash player throw an error:
    [object Exit]
              at Function/ccV2OxZn.lto.1.as$0:anonymous()
    my test shader is:
    VS:
    mov vt7 va0
    mov op vt7
    mov v0 va1
    PS:
    mov ft7 v0
    mov oc ft7
    my flascc version: 1.0.1. flash_player version: 11.6

    hi Chen,
    in addition to the above post
    check this
    http://help.sap.com/saphelp_nw04/helpdata/en/41/080aab7cefe34d8acb04861a467efc/content.htm
    bvr

  • Related column of a fact table - SSAS Tabular

    Hi,
    I'm developing a SSAS Tabular model using a SQL Server 2012 SP 1 installation.
    For a fact table I've created some calculated columns using the DAX RELATED function. These columns not are hidden to client tools. When I deploy the project and I open an Excel workbook in order to connect the SSAS Tabular cube, in the field list I cannot
    see the calculated columns by RELATED function.
    For me, this in an issue and not a normal behaviour.
    Any suggests to me, please? Many thanks

    Hi Pscorca,
    Generally, if we create a calculated column on SQL Server tabular model database on SSMS, and then go to Model-> Process -> Process All and finish the data processing. Then when we connect the database in EXCEL, the calculated column will appear on
    the Excel. In your scenario, you cannot see the calculated columns. It’s strange behavior. However we cannot give you the detail reason for this issue base on the limited information.  Please refer to the link below which describe the detail steps about
    create a calculated column, then check whether if you missing any step when creating calculated column.
    Add Calculated Column and Measures to Tabular Model
    If the issue persists, please elaborate your production environment and the steps to create the calculated column, so that we can make further analysis.
    Regards,
    Charlie Liao
    TechNet Community Support

  • How to write the expression when create the calculated column?

    Dear,
           I want to create some calculated column in my attribute view, but I don't know how to write the code in the expression, is there any introduction about this part, how to use those function and how about the grammar in this expression code ?  or is there any example about this calculated column?
       Thanks for your sincerely answer.

    Hi Zongjie,
    you can find some information about the creation of calculated columns in the HANA Modeling Guide (http://help.sap.com/hana/SAP_HANA_Modeling_Guide_for_SAP_HANA_Studio_en.pdf).
    Within chapter 6.2.1 (Create Analytic Views) you can see under point 7 some basics and also a simple example. The same is also valid for Calculation Views.
    Chapter 8.9 (Using Functions in Expressions) describes the different available functions.
    You also can use the integrated search in the HANA Studio by clicking the "?" button in the button left corner. Then you get some links in the side panel with related information.
    In general you can write your expression manually or you can just drag and drop the functions, elements, operators into the editor window. For example if you drag and drop the "if" function into the editor window you get "if(intarg,arg2,arg3)" inserted. The arguments can be replaced manually or also by drag and drop.
    It is also worse to use the "Validate Syntax" button on top of the editor window. It gives you directly a feedback if your expression syntax is correct. If not you get some helpful information about the problem (ok, sometimes it is a little bit confusing because of the cryptic error message format ).
    Best Regards,
    Florian

  • Calculated column doesn't expand the items in list view

    Dear All,
              I have a calculated column
    Week with formula, =INT((DAY([Start Time])+6)/7) 
    in one of my lists. I'm displaying a view of this list in a SharePoint page, group by column Year and column
    Week. But when the page is loaded with items, I'm only able to expand the list view up to
    Year column level. When I click on Week section it doesn't show / expand the items under it.
    Further more when I use a different calculated column with a function like (=TEXT(Date,"yyyy")) I don't get above error.
    Any Idea?
    Thanks,
    Dilip

    Hi Dilip,
    According to your description, an issue occurs when you try to expand the subgroups in a list contains Calculated column.
    It is an known issue in SharePoint 2013, there are some workarounds I can provide as below:
    As the first workaround, you can set the groupings to expanded by default, though it would make the grouping collapsed by default, then the grouping would function
    normal.
    As the second workaround, you can create a SharePoint Designer Workflow and add a “Do Calculation” action to calculate the value you needed. Then add a “Update List
    Item” action to add the value to a “Single line of text” column. We will use the “Single line of text” column in the grouping instead of the Calculated column.
    As the third workaround, you can install the latest update of SharePoint to fix the issue for new Document Libraries. For the existing libraries, after the installing
    the update, you can use PowerShell to make an update to each item in the library, it will make the old items get normal in the grouping.
    About how to update list items in a list/library using PowerShell, a demo as below for your reference:
    $web = Get-SPWeb http://YourServer/
    $list = $web.Lists["list name"]
    foreach ($item in $list.Items)
    $item.SystemUpdate();
    Best regards
    Patrick Liang
    TechNet Community Support

  • Calculate Date/Time Difference in a Calculated Column Omitting Weekends, Holidays and Non-Working Hours

    I am looking for a formula to use in a calculated column that calculates the difference between two date/time fields while excluding weekends, holidays and non-working hours
    6/1/2010 9:43 AM - 6/7/2010 1:45 PM
    Here is the closest that I have gotten; however, this formula gives me a result of 96:
    =IF(AND((WEEKDAY([Resolved Date],2))<(WEEKDAY(Created,2)),((WEEKDAY(Created,2))-(WEEKDAY([Resolved Date],2)))>1),(((DATEDIF(Created,[Resolved Date],"D")))-(FLOOR((DATEDIF(Created,[Resolved Date],"D")+1)/7,1))-3),(((DATEDIF(Created,[Resolved Date],"D")))-(FLOOR((DATEDIF(Created,[Resolved
    Date],"D")+1)/7,1)*2))*24)
    Any and all assistance is greatly appreciated!

    I don't know how to exclude holidays but i exclude weekends(Sat&Sun)-
    IF(ISERROR(DATEDIF([Start Date],[End Date],”d”)),””,(DATEDIF([Start Date],[End Date],”d”))+1-INT(DATEDIF([Start Date],[End Date],”d”)/7)*2-IF((WEEKDAY([End Date])-WEEKDAY([Start
    Date]))<0,2,0)-IF(OR(AND(WEEKDAY([End Date])=7,WEEKDAY([Start Date])=7),AND(WEEKDAY([End Date])=1,WEEKDAY([Start Date])=1)),1,0)-IF(AND(WEEKDAY([Start Date])=1,(WEEKDAY([End Date])-WEEKDAY([Start Date]))>0),1,0)-IF(AND(NOT(WEEKDAY([Start Date])=7),WEEKDAY([End
    Date])=7),1,0))
    -Thanks
    Swapnil

  • Excel SSAS Tabular error: An error occurred during an attempt to establish a connection to the external data source

    Hello there,
    I have an Excel report I created which works perfectly fine on my dev environment, but fails on my test environment when I try to do a data refresh.
    The key difference between both dev and test environments is that in dev, everything is installed in one server:
    SharePoint 2013
    SQL 2012: Database Instance, SSAS Instance, SSRS for SharePoint, SSAS POWERPIVOT instance (Powerpivot for SharePoint).
    In my test and production environments, the architecture is different:
    SQL DB Servers in High Availability (irrelevant for this report since it is connecting to the tabular model, just FYI)
    SQL SSAS Tabular server (contains a tabular model that processes data from the SQL DBs).
    2x SharePoint Application Servers (we installed both SSRS and PowerPivot for SharePoint on these servers)
    2x SharePoint FrontEnd Servers (contain the SSRS and PowerPivot add-ins).
    Now in dev, test and production, I can run PowerPivot reports that have been created in SharePoint without any issues. Those reports can access the SSAS Tabular model without any issues, and perform data refresh and OLAP functions (slicing, dicing, etc).
    The problem is with Excel reports (i.e. .xlsx files) uploaded to SharePoint. While I can open them, I am having a hard time performing a data refresh. The error I get is:
    "An error occurred during an attempt to establish a connection to the external data source [...]"
    I ran SQL Profiler on my SSAS Server where the Tabular instance is and I noticed that every time I try to perform a data refresh, I get the following entries:
    Every time I try to perform a data refresh, two entries under the user name ANONYMOUS LOGON.
    Since things work without any issues on my single-server dev environment, I tried running SQL Server Profiler there as well to see what I get.
    As you can see from the above, in the dev environment the query runs without any issues and the user name logged is in fact my username from the dev environment domain. I also have a separated user for the test domain, and another for the production domain.
    Now upon some preliminary investigation I believe this has something to do with the data connection settings in Excel and the usage (or no usage) of secure store. This is what I can vouch for so far:
    Library containing reports is configured as trusted in SharePoint Central Admin.
    Library containing data connections is configured as trusted in SharePoint Central Admin.
    The Data Provider referenced in the Excel report (MSOLAP.5) is configured as trusted in SharePoint Central Admin.
    In the Excel report, the Excel Services authentication settings is set as "use authenticated user's account". This wortks fine in the DEV environment.
    Concerning SecureStore, PowerPivot Configurator has configured it the PowerPivotUnnattendedAccount application ID in all the environments. There is
    NO configuration of an Application ID for Excel Services in any of the environments (Dev, test or production). Altough I reckon this is where the solution lies, I am not 100% sure as to why it fails in test and prod. But as I read what I am
    writing, I reckon this is because of the authentication "hops" through servers. Am I right in my assumption?
    Could someone please advise what am I doing wrong in this case? If it is the fact that I am missing an Secure Store entry for Excel Services, I am wondering if someone could advise me on how to set ip up? My confusion is around the "Target Application
    Type" setting.
    Thank you for your time.
    Regards,
    P.

    Hi Rameshwar,
    PowerPivot workbooks contain embedded data connections. To support workbook interaction through slicers and filters, Excel Services must be configured to allow external data access through embedded connection information. External data access is required
    for retrieving PowerPivot data that is loaded on PowerPivot servers in the farm. Please refer to the steps below to solve this issue:
    In Central Administration, in Application Management, click Manage service applications.
    Click Excel Services Application.
    Click Trusted File Location.
    Click http:// or the location you want to configure.
    In External Data, in Allow External Data, click Trusted data connection libraries and embedded.
    Click OK.
    For more information, please see:
    Create a trusted location for PowerPivot sites in Central Administration:
    http://msdn.microsoft.com/en-us/library/ee637428.aspx
    Another reason is Excel Services returns this error when you query PowerPivot data in an Excel workbook that is published to SharePoint, and the SharePoint environment does not have a PowerPivot for SharePoint server, or the SQL Server Analysis
    Services (PowerPivot) service is stopped. Please check this document:
    http://technet.microsoft.com/en-us/library/ff487858(v=sql.110).aspx
    Finally, here is a good article regarding how to troubleshoot PowerPivot data refresh for your reference. Please see:
    Troubleshooting PowerPivot Data Refresh:
    http://social.technet.microsoft.com/wiki/contents/articles/3870.troubleshooting-powerpivot-data-refresh.aspx
    Hope this helps.
    Elvis Long
    TechNet Community Support

  • Tabular Models and Column Security

    We have a tabular model that we need to implement column level security against and we continue to run into brick walls, as anything to do with role based security is centered around row level security (or filtering).
    Our need is NOT for row level security, but hiding dimensional attributes based on who is viewing the model.  In keeping with the popular sales data scenario's, please consider this:
    Fact Sales
    Customer Key
    Item Key
    Sales Amount
    DimCustomer
    Customer Key
    Customer NameCustomerKey 
    DimItem
    Item Key
    ItemName
    In the aboave example, let's say we would want our Sales Managers to see the VALUE in "Customer Name", but for our Sales Associates, we do not want them to see the value, either have the column hidden all together or at a minimum a value of "HIDDEN"
    or "".
    We have two roles (AD groups) defined:  1 for users allowed to see, the other for users NOT allowed to see.  Our intention was to use role based security, but all it does is filter rows.  So if we use that level of security, the user see's
    nothing and 0 for sales dollars.  If you are allowed to see the value, you see everything and all sales dollars.  
    What is needed is to have everyone see the sales dollars, but not everyone can see the names of the customers.
    Though the above example is related to sales, we are actually in the medical field and dealing with some highly sensitive patient related data that needs to be regulated for obvious reasons.
    Are there any idea's out there that could help us with this so we can continue with our tabular build out?  Or are we looking at sticking with multi-dimensional cubes.
    Thanks for your help!

    In a SSAS tabular model, we can achieve row level security which you can see on the link below.
    Defining Row-Level Security in SSAS Tabular database
    Getting Started with Row Level Security
    However, currently there is no a functionally to set column level security based on my research. So I am afraid you requirement cannot be done.

Maybe you are looking for