Microsoft Analysis Server Tabular Model

Hi 
Please help me any one 
I have two dates    from_date and    to_date 
I have to calculate the no of days between these dates but one condition is If time is 2PM then the date will have to change to next day 
e.g, From_date is 
1/21/2011 6:02:08 PM   then the date need to change to 
 1/22/2011 12:00:00 AM i need like this 
Please help me 
I am referring no of blogs i did not get
help me as soon as  
Sreeni

Hi ,
  Please try the below DAX expression.
=value(
datevalue(year('DateTable'[To_Date]) & "-" & right("0" & Month('DateTable'[To_Date]),2) & "-" & Right("0" & day('DateTable'[To_Date]),2))
datevalue(year('DateTable'[From_Date]) & "-" & right("0" & Month('DateTable'[From_Date]),2) & "-" & Right("0" & if( hour('DateTable'[From_Date]) > 14,day('DateTable'[From_Date])+1,day('DateTable'[From_Date])),2))
Sad thing is DateAdd will not work as like as in Excel. Please refer to the below thread for more details.
http://cwebbbi.wordpress.com/2012/01/06/the-dax-dateadd-function-and-missing-dates/
Best Regards Sorna

Similar Messages

  • How to get data from MySQL into Analysis Services Tabular Model

    Hi,
    I have a problem with Analysis Services Tabular Model and MySQL ... I have to use several MySQL databases as a source of Tabuar Model ..
    Is there any way to get connection working from Tabular Model to retrieve data from MySQL database. I have a situation that in MySQL server there is several databases with same schema, one for each customer. I have planned to join these customer databases
    to one Tabular Model, create roles and users for each customer to query their data.
    What do I have to do to get this working ?
    Pasi

    Hi ,
      In Tabular model out of the box there is no direct connectors available for MySQL. Please see the list of supported Data Sources
    http://msdn.microsoft.com/en-us/library/gg492165.aspx
    But i think if you can establish a ODBC connectivity with data source to MYSQL , you can use the ODBC connection to retrieve the data from MySQL. Please try this and post the results here if it is possible or not.
    Best Regards Sorna

  • Analysis Services Tabular Model 2014 vs 2012

    Hi,
    A very simple question : with the same tabular model is 2014 faster than 2012 from query point of view (is the Storage Engine or Formula Engine faster than the previous version ) ?
    Thanks 

    Hi MIB1,
    According to your description, you want to know if the SSAS 2014 tabular model has better performance than SSAS 2012 tabular. Right?
    With exception to added functionality supporting Power View Reports against Multidimensional Models, SQL Server 2014 Analysis Services is unchanged from the previous release. There's nothing improvement on SSAS tabular.
    Reference:
    What's New in Analysis Services and Business Intelligence
    If you have any question, please feel free to ask.
    Regards, 
    Simon Hou
    TechNet Community Support

  • Memory usage in Analysis Services tabular model

    Hello,
    I've been researching and investigating trying to understand what is consuming memory resources in a tabular model that I'm working with. Using SQL Server Management Studio, the Estimated Size of the database is reported as 7768.34 MBs. Using
    Kasper de Jonge's BISM Server Memory Report, the database is reported as 15,465.13 MBs. However, a majority of the fields in the BISM Server Memory Report are empty, and so I cannot determine what is consuming the memory. The data source for this particular
    workbook is $SYSTEM.DISCOVER_OBJECT_MEMORY_USAGE.
    For example: I drill-down to an individual column (ColumnA) in the BISM Server Memory Report (Database > Dimensions > Table > In-Memory Table > Columns > Column) and the reported memory usage is 706.97 MBs. Underneath ColumnA,
    I see a blank level with a reported memory usage of 623.59 MBs and a Segments level with a reported memory usage of 83.39 MBs. Looking at $SYSTEM.DISCOVER_STORAGE_TABLE_COLUMN_SEGMENTS, if I SUM the USED_SIZE for ColumnA, it totals roughly 83 MBs which matches
    what is reported in the BISM Server Memory Report for the segment size. How do I determine what the other 623.59 MBs is being used for? Again, this discrepancy occurs for all columns in the model and not just this one example.
    Thanks!

    Follow up to my original question. It appears that the blank levels (at least under the column level) the Kasper de Jonge's BISM Server Memory Report reports the dictionary size of the column. The memory usage size matches the DICTIONARY_SIZE attribute in
    the $SYSTEM.DISCOVER_STORAGE_TABLE_COLUMNS. I made a mis-assumption as to what the information $SYSTEM.DISCOVER_STORAGE_TABLE_COLUMN_SEGMENTS was providing.
    In my original post I reference one database in particular in where the Estimated Size property in the Database Properties dialog is listed as 7,768.34 MBs. and the $SYSTEM.DISCOVER_OBJECT_MEMORY_USAGE reports 15,465.13 MBs. Thoughts, comments, or opinions
    on why the Estimated Size property does not match what's reported in $SYSTEM.DISCOVER_OBJECT_MEMORY_USAGE?
    Thanks!

  • Analysis service Tabular Model

    Hi
    Help me anyone,
    I Have to calculate for 1 Year rolling values from current date 
    example let say i am in march-2014   i have to rolling my column values for 1 year means April-2013 
    For this what function should i use 
    and also one more thing I have a string values in my column like
    Status
    Active
    Seperated
    Active
    Seperated
    Resigned
    Resigned
    Abscond
    Abscond 
    I need to apply 1 year rolling formula on this column 
    how should i get these total count  for 1 year rolling
    Please help me on that 
    Please reply me soon
    Sreeni
    Sreeni

    Hi Sreeni,
    Since this issue is related to Analysis Services, I will move this thread to
    Analysis Services forum. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated. 
    Thank you for your understanding and support.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Analysis service Tabular Model Rolling the values

    Hi
    Help me anyone,
    I Have to calculate for 1 Year rolling values from current date 
    example let say i am in march-2014   i have to rolling my column values for 1 year means April-2013 
    For this what function should i use 
    and also one more thing I have a string values in my column like
    Status
    Active
    Seperated
    Active
    Seperated
    Resigned
    Resigned
    Abscond
    Abscond 
    I need to apply 1 year rolling formula on this column 
    how should i get these total count  for 1 year rolling
    Please help me on that 
    Please reply me soon
    Sreeni
    Sreeni

    Hi Screeni,
    In your scenario, you can to calculate for 1 Year rolling values from current date, right? In MDX, we can calculate it using Lag and ClosingPeriod function, here is a sample query for your reference.
    WITH MEMBER [Measures].[Last 12 Mth Order Count] AS
    SUM(
    ClosingPeriod([Date].[Calendar].[Month], [Date].[Calendar].[All Periods]).Lag(12)
    : ClosingPeriod([Date].[Calendar].[Month], [Date].[Calendar].[All Periods])
    , [Measures].[Order Count]
    SELECT [Measures].[Last 12 Mth Order Count] ON 0
    FROM [Adventure Works]
    Reference
    Lag (MDX)
    ClosingPeriod (MDX)
    Regards,
    Charlie Liao
    TechNet Community Support

  • SSAS Tabular Model and browse with MS Excel 2013

    I have a tabular model, It has an attribute with datatype and data format as "whole number". When I browse the model from excel and add label filter, it
    does not work as expected.
    When I specify greater than 180 as label filter, It gives following output:
    My guess is that it is just filtering on first two digits "18" and not "180". When I copy these values in a excel sheet and create pivot table on top of it, hell it works fine.
    Is this a microsoft bug? have you encountered something like this or I am doing some thing wrong?
    I am using tabular model 2012 and excel 2013 or 2010.
    If this post answers your query, please click "Mark As Answer" or "Vote as Helpful".

    Hi Itz,
    According to your description, the filter not works fine in excel for a SQL Server Analysis Services Tabular models, right?
    I have tested it on the local environment, we cannot reproduce this issue. As per my understanding, this issue is related to the settings of your tabular model. Does this issue can be reproduce in multiple servers in your environment? In that is
    case, from a support perspective this is really beyond what we can do here in the forums. If you cannot determine your answer here or on your own, consider opening a support case with Microsoft. Visit this link to see the various support options that are available
    to better meet your needs:
    http://support.microsoft.com/default.aspx?id=fh;en-us;offerprophone
    Besides, if you consider this issue is a bug, you can submit a feedback at
    http://connect.microsoft.com/SQLServer/Feedback Microsoft will confirm if this issue is a bug or not. 
    Regards,
    Charlie Liao
    TechNet Community Support

  • Possible to exposer Tabular model over HTTPS on port 443?

    I know how to Access OLAP Cube with Excel over 443 port.
    Is it possible to Access Tabular mode over port 80 or 443 with Excel?
    Kenny_I

    Hi Kenny_I,
    To access SQL Server Analysis Service tabular model remotely, we need configure the Windows Firewall for Allow Analysis Access. Generally, we open TCP port 2383 or 2382 for remote access. 
    Open TCP port 2383 when installing a default instance or creating an Analysis Services failover cluster.
    Open TCP port 2382 when installing a named instance.
    Please refer to the link below to see the detail information.
    http://msdn.microsoft.com/en-us/library/ms174937.aspx
    After we configure the Windows Firewall for Allow Analysis Access, we can connect to SSAS tabular database in EXCEL. In your scenario, you want to access it using port 80 or 443, there is no such a scenario base on my research. So why do you want to access
    tabular mode in excel using port 80 or 443?
    Regards,
    Charlie Liao
    TechNet Community Support

  • Case-sensitive values in an Tabular Model with a Oracle Datasource

    Hi,Lets use an Oracle Database as Datasource for my Project. I use a "Select distinct ColumnA from Table" to build up a LookupTable in my Tabular Model. But it returns Dublicates!! eg:
    When I fire the query from Oracle SQL Developer I got 2 Records "1N" and "1n". In the Grid View in SSDT I see 2 times "1N". ??
    Collation Case Sensitive. OK, but how to solve that?
    KR

    Hi KR,
    According to your description, you encounter the case-sensitive issue when creating SQL Server Analysis Services Tabular model project, right?
    Based on my research, Tabular models have the insensitivity problem by default. The workaround for this issue is creating a empty tabular model in tabular server using the xmla below and import the tabular in SSDT.
    <Create xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
    <ObjectDefinition>
    <Database xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2" xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200" xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200" xmlns:ddl300="http://schemas.microsoft.com/analysisservices/2011/engine/300" xmlns:ddl300_300="http://schemas.microsoft.com/analysisservices/2011/engine/300/300">
    <ID>Collation test</ID>
    <Name>Collation test</Name>
    <Language>1033</Language>
    <Collation>Latin1_General_CS_AS</Collation>
    <DataSourceImpersonationInfo>
    <ImpersonationMode>Default</ImpersonationMode>
    </DataSourceImpersonationInfo>
    <ddl200_200:StorageEngineUsed>InMemory</ddl200_200:StorageEngineUsed>
    <ddl200:CompatibilityLevel>1100</ddl200:CompatibilityLevel>
    </Database>
    </ObjectDefinition>
    </Create>
    For the detail information about it, please refer to the link below.
    http://blogs.msdn.com/b/cathyk/archive/2011/10/24/making-tabular-models-more-sensitive.aspx
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

  • What is the best book for Analysis Server 2012??

    What is the best published book for SSAS 2012?

    Thanks for the recommendation, Shankar! I would like to point out that the answer depends on what you mean by "SSAS 2012". Here are a few other recommendations...
    If it's SSAS 2012 Tabular, then yes, "SQL Server Analysis Services 2012: The BISM Tabular Model"
    is an option - but as a co-author I'm obviously biased! Teo Lachev's book, "Applied Microsoft
    SQL Server 2012 Analysis Services: Tabular Modeling" covers some of the same ground and is also very good. If you're just interested in DAX, Rob Collie's book "DAX
    Formulas for PowerPivot" is worth a look - even though it's for PowerPivot, the DAX language is the same as in SSAS Tabular.
    For SSAS 2012 Multidimensional, because not much has changed since SSAS 2008, any book for 2008 or 2008 R2 will still be relevant. I haven't seen the 2012 edition, but editions of "Professional
    Microsoft SQL Server 2012 Analysis Services with MDX and DAX" for older versions of SSAS were good general introductions; "Microsoft
    SQL Server Analysis Services 2008 Step-By-Step" is also good. For more experienced developers there's another book I co-wrote, "Expert
    Cube Development with SQL Server 2008" (a refresh for SSAS 2012 is coming later this year); and for the really advanced SSAS developer who wants to understand the internals of the product there's "Microsoft
    SQL Server 2008 Analysis Services Unleashed", written by Edward Melomed and several other senior members of the SSAS dev team at the time. For MDX beginners I'd recommend "Microsoft
    SQL Server 2008 MDX Step--By-Step", and for more advanced MDX there's "MDX with Microsoft
    SQL Server 2008 R2 Analysis Services Cookbook".
    For the whole Microsoft BI stack, Brian Larson's books are always good (eg "Delivering Business
    Intelligence with SQL Server 2012") and cover more than just SSAS, although they go into less detail.
    HTH,
    Chris
    Check out my MS BI blog I also do
    SSAS, PowerPivot, MDX and DAX consultancy
    and run public SQL Server and BI training courses in the UK

  • Tabular model performance

    HI,
    I have built a small database of size 31 MB on tabular mode. DB querymode is set to InMemory. With simple setup, a normal evaluate dax query is taking 1 sec to retrieve list of sales person which is a dimension table and does not include any calculation.
    The other semi complex query are taking 15- 20 secs. The tabular instance setting are set to default as the db size is less and server as total of 7 GB RAM.
    Is there any setting that needs to be validated to improve the performance.Because if the model is inmemory then the output should come out in microseconds.
    Manohar K - SQL Server DBA Consultant

    Hi Manohar,
    According to your description, you are experienciing the performance issue when retrieval data from the small SQL Server Analysis Services Tabular model, right?
    In tabular model, as you increase the data load, add more users, or run complex queries, you need to have a strategy for maintaining and tuning performance. Here are some links which describe strategies and specific techniques for getting the best performance
    from your tabular models, including processing and partitioning strategies, DAX query tuning, and server tuning for specific workloads. Please refer to the links below.
    http://msdn.microsoft.com/en-us/library/dn393915.aspx
    http://sqlblog.com/blogs/marco_russo/archive/2013/08/05/performance-tuning-of-tabular-models-in-analysis-services-2012-ssas.aspx
    Besides, I'd suggest you enable SQL Server profiler to monitor the query, and check which part in the query took a very long time to run. Here is a useful link for your reference.
    http://sqlmag.com/database-performance-tuning/using-sql-profiler-tune-mdx-queries
    Regards,
    Charlie Liao
    TechNet Community Support

  • Data "chunking" in SSAS Tabular models

    I have a Tabular model I built in VS2013, deployed to SSAS 2014 Tabular, and consumed via SSRS and PowerPivot. Let's say it consists of 4 fact and 1 measure table. The resulting dataset is about 10 million rows, which for some end-users can be a little unwieldy.
    I had heard of "partitions", and thought it could help me "chunk" the data into manageable "user friendly" portions of the total measure dataset, but it doesn't appear to behave as I envisioned.
    Imagine you have a model with world-wide sales information and you want to maintain that as a master model that you deploy, but want to make portions of the measure data available based on values in a fact table; let's say subsets that represent NA, another
    for EU and so on. The geo data is a fact table in the model. 
    I envisioned "partitions" being select parts of the total model that you expose via partition name that the end user can select to work with like "I'm the AR for the NA region and this is my partition of the WW Sales data cube" How
    would one accomplish this?

    Hi Torben,
    According to your description, you create a SQL Server Analysis Services Tabular model and deploy it to SQL Server 2014 server, and use Reporting Services and Excel to interact with this tabular model. Now the problem is that the resulting dataset is about
    10 million rows, which for some end-users can be a little unwieldy, right? If I have anything misunderstood, please point it out.
    In your scenario, you want to filter the data base on the user's region to improve the performance issue. In this case, please refer to the links below which describe how to achieve it.
    http://blogs.msdn.com/b/analysisservices/archive/2012/08/10/row-level-security-in-analysis-services-2012.aspx
    http://grow-n-shine.blogspot.jp/2012/10/defining-row-level-security-in-ssas.html
    Besides, to improve your report performance, you can cache your report. Caching can shorten the time required to retrieve a report if the report is large or accessed frequently. Please refer to the link below to see the details.
    http://msdn.microsoft.com/en-us/library/ms155927.aspx
    Regards,
    Charlie Liao
    TechNet Community Support

  • How to handle reference Flat File for Dimentions in Tabular model

    I have 2 flat files, which are needed in creating one Country dimention.  
    In SSAS OLAP cube, I would import these 2 files to 2 staging table. I would ETL to one DimCountry table on DW.
    How to do with Tabular model?
    Should both Files imported to Tabular model and then Insert new Columns and DAX to create needed relationships?
    Kenny_I

    Hi Kenny_I,
    According to your description, you want to know how to import flat files into SQL Server Analysis Services tabular model, right?
    In your description, you said that "you can import these 2 files to 2 staging table, then ETL to one DimCountry table on DW in OLAP cube." Based on my research, the flat files are not supported as the datasource of SSAS tabular model. So you can import
    these 2 files to 2 staging table, and import the tables into SSAS tabular model.
    Reference
    http://msdn.microsoft.com/en-in/library/gg492165.aspx
    http://msdn.microsoft.com/en-us/library/hh230968.aspx
    If I have anything misunderstood, please point it out.
    Regards,
    Charlie Liao
    TechNet Community Support

  • When will Excel Support Tabular Model Table and Column Descriptions via Tool Tip or other display mechanism

    I have noticed that SSMS supports tool tips for the Tabular Model (tables and columns) however Excel 2013 doesn't appear to.   This is a very important feature to our end users.
    Does anyone know when this will be supported?
    Thanks
    M Meyer

    Hi Meyer,
    According to your description, you want to use the tooltip function in Microsoft Excel for the SQL Server Analysis Services Tabular model, right?
    I have tested it on my local environment (Microsoft SQL Server 2012 SP1 and Excel 2013), the result is that the feature is not supported currently. It's hard to say the detail date when this will be supported. If this feature is enabled, Microsoft will announce
    it on the document.
    Besides, 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.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Tabular model. Define column description to be visible in Excel

    Hello,
    I edit a Tabular Model in SQL Server Data Tools.
    Then I connect to it through Excel, where I see the names of the tables, column and measures.
    I would like to see descriptive names of the entities in Excel. There is "Description" field in a model, but Excel still displays the real names of the columns.
    I can only do that by setting description in the field parameters in Excel for each pivot table(there are many)
    Can I implement such functionality using SQL Server Data Tools fro VS2013 and Excel ? 

    Hi Ruslan,
    According to your description, you created a SQL Server Analysis Services Tabular model project, now you need to define column description to be visible in Excel, right?
    In SSAS tabular, there is a measure property Description
    that description of the measure. The description will not appear with the measure in a reporting client. Please refer to the link below to see the details.
    http://msdn.microsoft.com/en-us/library/hh230824.aspx
    For the tabular model table, the table description property is a text description for the table. In PowerPivot for Excel, if an end-user places the cursor over this table in the field list, the description appears as a tooltip.
    http://msdn.microsoft.com/en-us/library/hh479562.aspx
    Regards,
    Charlie Liao
    TechNet Community Support

Maybe you are looking for

  • How do I transfer contacts from a macbook to a mac desktop?

    I need to zap my macbook to give to my husband but before I do that I need to transfer all my contacts, all my safari favorits and all my word processing documents. Is there an easy way to do this in 1, 2 or 3 batches instead of manually. Thank you!

  • How to get filename from mail attachment

    Hi all, I have a XI scenario Mail->XI->RFC. I have created my own adapter module which handle all attachments from incoming mail. Everything work fine, but in my module I try to get information about filename of mail attachment. I use getContentType(

  • How do I add icons to a mail toolbar?

    I can see how to add standard icons to a mail toolbar but are these the only icons available? Are there icons for instance to move to the next (or previous) mail message without having to go in and out of a message?

  • What is the field which describes material division in which table?

    What is the table name and the field name whch describes the following material division?

  • Unbootable Solaris 10 x86 installed on ZFS root file system

    Hi all, I have unbootable Solaris 10 x86 installed on ZFS root file system. on an IDE HDD The bios keep showing the msg DISK BOOT FAILURE , PLEASE INSERT SYSTEM BOOT DISK please note : 1- the HDD is connected properly and recognized by the system 2-