Quantcast
Channel: SQL Server Analysis Services forum
Viewing all 14337 articles
Browse latest View live

Can connect to my azure tabular model in Power BI, but not Excel

$
0
0

I am working on an Azure Analysis Tabular model and it looks great when I "Analyze in Excel" from Visual Studio..  then I deploy and process.  I can connect and everything is great from Power BI, but when I try to connect with Excel I get weird error.  "Internal error: An unexpected error occurred (file 'pfadalauthinfo.cpp'., line 530 function 'PFadalAuthinfoConfigurations::ResolveASPaasDataSource').

I was trying to update the connection in Power Pivot and got a warning.  "Test connection failed because of an error in setting the window handle property.  Multiple-step OLE DB Operation generated errors.  Check each OLE DB status value, if available.  No work was done.  Continue with test connection?"

then when I hit continue I get "Test connection succeeded but some settings were not accepted by the provider"

Any one have any idea what this is?

Thanks,

Mike




SSAS CUBE TABLE AND COLUMN NOT WORKING

$
0
0

HI ALL,

I created a cube in SSAS tabular model, filtered the row with DAX expression. On tables and columns, it stated that "Select tables and columns that should not be visible to users. I put a check mark to just to columns l don't want a particular user to see as shown below

  • Sales Amount
  • Billable Amount
  • Total Quantity
  • Actual cost

The user will not see the bold  when he opens the report

I deployed the cube and created Power BI report and share the app with the user, but the user still sees the two check in the report.
Does anyone have a solution to this issue?


MS SQL Analysis and Reporting Services 2019 to connect to a MS SQL 2016 Database cluster

$
0
0
I have a two node MS SQL 2016 database cluster and we want to setup on a different servers the MS SQL 2019 Analysis and Reporting services which will connect to the database cluster. Now I do not know if that will work fine or I need to install the MS SQL server 2019 into my database cluster.

Chnage your cube connection

$
0
0
Greeting

Well , During the creation of my cube i set my connection to the data source via windows authentification , but i want to change it to sql authentification ?
is it possible to do it without losing my progress in the cube

Thanks in advance !

SSAS Reporting Action - Need to pass multiple values for a dimension attribute to SSRS report parameter

$
0
0

I have created a SSRS report in which I need to pass multiple values to a parameter through SSAS cube - dimension attribute.

I was able to pass descendants of current member but I am not able to pass multiple selected values from a filter when cube browsed through excel.

UrlEscapeFragment(

Generate(EXISTING DESCENDANTS( [TRANSACTION TYPE].[TRANSACTION TYPE].CurrentMember,[TRANSACTION TYPE].[TRANSACTION TYPE].[TRANSACTION TYPE]),[TRANSACTION TYPE].[TRANSACTION TYPE].CurrentMember.Name,"&a="))


Any help would be appreciated.

Memory error: The operation cannot be completed because the memory quota estimate (11107MB) exceeds the available system memory (5324MB)

$
0
0

Hi,

While processing only one dimension (with 2 colunms, ID type int and Name type varchar(30)) having 99777529 rows and i got the error as follow:

"Memory error: The operation cannot be completed because the memory quota estimate (11107MB) exceeds the available system memory (5324MB)."

So i changed the properties of the Analysis Services as below:

Memory/TotalMemoryLimit: 90
Process/BufferMemory: 90

I processed again but still having the same issue and i pretend to process more dimensions with 3 or 4 colunms having the same or more volume of rows. 

I'm using 2 Datacenters dedicated, one is the SSAS EnterpriseCore64 and the other the SQL Server 2017 (RTM).

Both haved the same configuration:

Windows Server 2016 Datacenter 
Memory Ram: 8gb

And the memory hard disk for the server SSAS is 349gb



Any kind of help is appreciated.

Regards,

Caio 

 

Each GROUP BY expression must contain at least one column that is not an outer reference

$
0
0

Would be great if somebody could help me with the query I am trying to build below. Ideally I want to end up with a table with 7 columns: EstabName, Country, Province, EstablishmentID, bookingsCY, bookingsLY and Searches. I know im close; however as it stands I keep getting the error message: 'Each GROUP BY expression must contain at least one column that is not an outer reference' amongst others. Would appreciate it so much if someone could take the below script and tweak it for me to get it working.

Thanks so much

SELECT
      bt.title as EstabName
,p.countryId as country
     ,p.provinceId as Province
     ,bt.MasterEstabId as EstablishmentId
     ,count(distinct(bt.bookingid)) as bookingsCY
,count(distinct(bt.bookingid)) as bookingsPY
     ,pr.ActiveSearch as Searches


FROM [dbo].[Booking_tbl] as bt 

left join [dbo].[Booking_tbl] b on bt.BookingId= b.BookingId
left join [dbo].[acomEstab_tbl] ae on bt.MasterEstabId = ae.estabid
left join [dbo].[BookingMeta] p on bt.BookingId= p.BookingId
left join [dbo].[acomProvince_tbl] pr on p.ProvinceId= pr.ProvinceId and p.CountryId= pr.CountryId 

where bt.BookedDate between '2019-04-01' and '2019-05-22'
and b.BookedDate between '2018-04-01' and '2018-05-22'
and bt.DomainBookedOn ='travelrepublic.co.uk'
and ae.title is not null
and 'bookingsCY' = 0
group by 'bt.EstabName'
order by 1 asc, 2 asc, 6 desc

       

SQL DW Developer

$
0
0

I am trying to do an incremental load in a tabular model. The incremental load is supposed to load only records into the invoice table greater than the max invoice date in the cube. Basically, it should only load a new day's worth of invoice into the cube. The TMSL code being used is below but I keep getting an error of a duplicate value for an invoice date of 04/25/2019. That record shouldn't already be in the cube. Is there something I am doing wrong in the TMSL script?

{
"refresh":{
"type":"add",
"objects":[
{
"database":"InvoiceSalesAnalysisFinancial",
"table":"Invoice",
"partition":"vwFactInvoice"
}
],
"overrides":[
{
"partitions":[
{
"originalObject":{
"database":"InvoiceSalesAnalysisFinancial",
"table":"Invoice",
"partition":"vwFactInvoice"
},
"source":{
"query":"SELECT * FROM [InvoiceSalesAnalysis].[vwFactInvoice] WHERE InvoiceDate_Recon > '2019-04-24 00:00:00'"
}
}
]
}
]
}
}


Year to date and month to month comparison

$
0
0

Hello Everyone,

I am using a multi dimensional cube. I want to create YTD Sales Amount and also i want to compare sales by month. I want to compare May 2019 sales against May 2018 sales. I have found code online and i tried running it using the SSMS and i am getting a message saying "The Cube either does not exist or has not been processed"

Can i please get help. I have full control over the cube role wise

with MEMBER [Measures].[INVOICETOTAL] AS 
    (
      ParallelPeriod
      (
        [Dim Date].[Year]
       ,1
       ,[Dim Date].[Year].CurrentMember
      )
     ,[Measures].[INVOICETOTAL]
    ) 
   ,FORMAT_STRING = "Currency"
SELECT 
  {
    [Measures].[INVOICETOTAL]
   ,[Measures].[Last Year Data]
  } ON COLUMNS
FROM [COV_BI_SSAS]
WHERE [Dim Date].[Year].&[2019];

Thanks

Memory error: The operation cannot be completed because the memory quota estimate (11107MB) exceeds the available system memory (5324MB)

$
0
0

Hi,

While processing only one dimension (with 2 colunms, ID type int and Name type varchar(30)) having 99777529 rows and i got the error as follow:


"Memory error: The operation cannot be completed because the memory quota estimate (11107MB) exceeds the available system memory (5324MB)."


So i changed the properties of the Analysis Services as below:

Memory/TotalMemoryLimit: 90
Process/BufferMemory: 90


I process again but still having the same issue and i pretend to process more dimensions with 3 or 4 colunms having the same or more volume of rows. 


I'm using 2 Datacenters dedicated, one is the SSAS EnterpriseCore64 and the other the SQL Server 2017 (RTM).

Both haved the same configuration:

Windows Server 2016 Datacenter 
Memory Ram: 8gb

And the memory hard disk for the server SSAS is 349gb



Any kind of help is appreciated.



Regards,

Caio 

 

DAX expression

$
0
0

how can we compare values of to dimensions in if statement 

EX

if(dim1.column=dim2.column,true,false)

Data Source View Relationships: Want One to Many... keeps changing to Many to One

$
0
0

I am trying to relate two tables in the data source view of a Tabular Model between a fact table and dimension table.  However when I try to create, I always get the wrong direction.  Why wont it let me change the direction?  It always puts my fact table on the one side.  I did filter my fact table during dev from 400 million rows to 5000..  could this be the problem?  Why can't I make the correct relationship?

Thanks,

Mike

Deployment.exe error with tabular model at compatibility level 1400 with Modern Get Data experience (SQL Server 2017)

$
0
0

Hi

I get the error "No parameterless constructor defined for this object." when I try to deploy from input files or edit the input files in Deployment Wizard.

Is there anybody with the same problem or where it works?

Steps:

  1. Run Build in VSDT and copy the database file "bin\model.asdatabase" to a separate folder
    (alternatively copy "bin\*.*" or "obj\Development\model.*" or "model.bim")
  2. Create deployment files in Answer Mode:
    "C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\Microsoft.AnalysisServices.Deployment.exe" c:\test\model.asdatabase /a
  3. Run the created files in Silent Mode:
    "C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\Microsoft.AnalysisServices.Deployment.exe" c:\test\model.asdatabase /s
  4. I get the error message
  5. I get the same error message if I repeat Answer Mode (step 2).
  6. After deleting model.configsettings the Answer Mode works again

The only things that work are direct deployment and creating the json deployment script. Upgraded models (with legacy data source) work as well.

Any ideas?

I found SSAS Deployment Wizard unable to deploy without any response from MS.

I need to be able to have separate files for data source, target server and model scheme, because the development must be completely separate from deployment and deployment must be automated.

An update to the latest SSMS version 17.9.1 didn't help.

Visual Studio Crashing

$
0
0

Hi Gurus

When i try to make some changes to the Data Source View (adding a new field to a named query ) and click ok the Visual Studio is crashing . can someone tell me what might be the reason. There is active dev work going on and its causing lot of inconvenience.

Thanks

Sub Select on Parallel Period

$
0
0

Hi all,

I am hoping you can help me I have a problem with this calculated member:

SUM(EXISTING [Billing Month].[Simple Calendar].[Month].MEMBERS, 
(PARALLELPERIOD([Billing Month].[Simple Calendar].[Year],1),
[Measures].[Invoiced Sales]))

Basically the issue is when the user is using a client tool and selecting individual months the measure does not function correctly and returns incorrect figures. I have change the 

[Billing Month].[Simple Calendar].[Month].MEMBERS

to a dynamic set but this is very slow at times so I was wondering if there is another solution?

Many thanks,

Joe


postgres driver for SSAS Tabular

$
0
0

hi folks, wanted to know what the best driver for SSAS Tabular 2017 is, against PostgreSQL 10 (64bit), be it ODBC, OLEDB or .Net  (for VS2017 project creation). 
I've installed npgsql 4.0.7 but get an error *after succesfully importing a table*, when trying to actually process that table:

"Failed to save modifications to the server. Error returned: 
'OLE DB or ODBC error: We're sorry, an error occurred during evaluation.."

Not sure where that error is coming from.
Any help is much appreciated.

Cos 




Scope to format Measure

$
0
0

hello - i am trying to set the format property of a measure based on the member of a dimension. I am using the below code but the measure is getting formatted only for Market Value; the formatting is not honored for Purchase Amount. Any idea how to fix it?

scope([Transactions].[Type].&[Market Value]);
scope([Transactions].[Type].&[Purchase Amount]);
FORMAT_STRING([Measures].[Amount]) = "$#,##0.00;($#,##0.00)";
end scope;
end scope;

Getting the top 5 sales by year and display the results by Quarter

$
0
0

i m working with a sales cube ! i want to get the top 5 store by year and display their sales by Quarter later on my report

i was able to get the top 5 store but by quarter aswell not only year !

SELECT NON EMPTY { [Measures].[Revenue] } ON COLUMNS, NON EMPTY { ([DWH REF DATE].[H_CALENDER].[QUARTER NUM].ALLMEMBERS * TOPCOUNT([DWH REF STORE].[H_STORE].[STORE].ALLMEMBERS , 5 , [Measures].[Revenue] )) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_VALUE, MEMBER_UNIQUE_NAME ON ROWS FROM ( SELECT ( -{ [DWH REF STORE].[H_STORE].[TERRITORY].&[N/A].&[N/A] } ) ON COLUMNS FROM ( SELECT ( { [DWH REF DATE].[H_CALENDER].[YEAR NUM].&[2012] } ) ON COLUMNS FROM [SALES CUBE]))

what i want Exactly to be able to get the top 5 store by year and after get their sales By quarter of the 5 stores !

Using a measure for filtering / grouping

$
0
0

Hi,

I have a tabular model in which i am trying to use a measure for filtering / grouping.

I have a "AVG AH Weighted Score" measure and i am trying to use the measure value for filtering q grouping purposes.

I used a suggestion that i saw online and added a floating table and and the following measure that references the floating table:

Measure =
IF (
    HASONEVALUE ( ForSlicer[Score_Group_Name] ),
    IF (
        VALUES ( ForSlicer[Score_Group_Value] ) = 1,
        IF (
            Fact_Customer_parameter_Scores[AVG AH Weighted Score] > 50,"Above 50",
            BLANK ()
        ),
        IF (
            Fact_Customer_parameter_Scores[AVG AH Weighted Score] > 50,
            BLANK (),"Below 50"
        )
    ),
    IF (
        Fact_Customer_parameter_Scores[AVG AH Weighted Score] > 50,"Above 50","Below 50"
    )
)

the floating table called "ForSlicer":

I succeeded slicing my visual according to the measure value (adding a is not blank condition on the visual):

 

what i am trying to achieve now is use the new measure for grouping and displaying the customer count.

# Customers = CALCULATE(COUNTROWS(Dim_Customers),Fact_Customer_parameter_Scores) 

The # Customers measure gives the same count for both Score_Group_Name although there is only 1 customer with "Above 50"  value in the measure.

What am i missing here?

Thanks!


Dimension tab >>Inherit while creating a Role in SSAS Cube

$
0
0

Hi ,

I want to understand what is the significance of Inherit flag in the Dimension tab of Role creation console.

Viewing all 14337 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>