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

Row level security problems

$
0
0

Hi!

I have a problem with RLS (row level security) in my tabular model:
Visual studio 2015, SQL server 2016

Prereq:
factTable
- organisationKey (FK to DimBridgeSecurity)
Measures
:: exampledata
organisationKeymeasure
11-22-33 250
23-23-23 140
45-45-45 350


UniqueOrgBridge
- UniqueOrgKey (PK)
:: exampledata
11-22-33


DimUserSec
- UniqueOrgKey (FK to DimBridgeSecurity)
- UserID
- AD_UserID (e.g DOMAIN\USERID1)
:: exampledata
11-22-33
abc123
ABCDOMAIN\abc123


Tabular model
FactTable.organisationKey (many) to -> DimBridgeSecurity.UniqueOrgKey (one) <- DimUserSec.UniqueOrgKey (many)

Tabular Role: FilterOrg
Member: DOMAIN\ReportReader
DAX row level security code:
(On UniqueOrgBridge dimension)
='UniqueOrgBridge'[UniqueOrgKey]=LOOKUPVALUE('DimUserSec'[UniqueOrgKey];'DimUserSec'[AD_UserID]; USERNAME();'DimUserSec'[UniqueOrgKey];'UniqueOrgBridge'[UniqueOrgKey])
(Nothing on the DimUserSec?) If i put FALSE(), nothing is visible
Analysis services security:
DOMAIN\admin.. ONLY
Not ReportReader

When launching excel for validate using the Role (FilterOrg)
- I can see everything. Total amount of 740
- If i set DimUserSec is set to FALSE(), i see nothing

 Br, Mats

Memory Error - while iterating Execute Package Tasks Multiple times

$
0
0

Hi, I have a developed a solution where I have the below flow to execute for Parallel Processing.

Launch Package - Pick the Scheduled Job and Triggers Tasks to Parent Package based on certain criteria’s

Parent Package - Has different flows to execute tasks for Remote and Table creation

Child Packages – Where based on the Task assigned to Parent Package and flows identified it triggers the execution

We have Parent to Child execution up to levels and vice versa. The entire flow execute within a for each loop where we have Execute Package Task used to call different child packages within a Child Package and return the updated values through Variables.

The solution works fine for 20- 30 attempts and then gets stuck at one the Child Packages for long time and the error that we receive in the Progress Tab is as below. This does not stuck at one static place its happens randomly at any Execution Package Task.

Error 0x80070008 while executing package from project reference package \"pkg.dtsx\". Not enough storage is available to process this command.  

this is the error message it gets triggered

The system on which I am running this has a RAM of 512 GB and 2 Processors.

Can you please help us identify on how we can resolve this issue and move ahead to make the solution working.

 


Memory Error - while iterating Execute Package Tasks Multiple attempts

$
0
0

Hi, I have a developed a solution where I have the below flow to execute for Parallel Processing.

Launch Package - Pick the Scheduled Job and Triggers Tasks to Parent Package based on certain criteria’s

Parent Package - Has different flows to execute tasks for Remote and Table creation

Child Packages – Where based on the Task assigned to Parent Package and flows identified it triggers the execution

We have Parent to Child execution up to levels and vice versa. The entire flow execute within a for each loop where we have Execute Package Task used to call different child packages within a Child Package and return the updated values through Variables.

The solution works fine for 20- 30 attempts and then gets stuck at one the Child Packages for long time and the error that we receive in the Progress Tab is as below. This does not stuck at one static place its happens randomly at any Execution Package Task.

Error 0x80070008 while executing package from project reference package \"pkg.dtsx\". Not enough storage is available to process this command.   

this is the error message it gets triggered

The system on which I am running this has a RAM of 512 GB and 2 Processors.

Can you please help us identify on how we can resolve this issue and move ahead to make the solution working

How to add Garbage collector to clear Object Variables post Pkg execution

$
0
0

Hi, 

Can anyone please help me on how to use ipdispenser using Script Task to kill the Variables once the usage is done. I have a package where we pass variables from Parent to Child and Vice Versa, at the end of the instance I want to dispose the variables used here so that when a second instance starts it works properly without impacting the memory. Can you please guide me on the steps to use this and how to configure it in SSIS flow.


SSAS Tabular Date Fields not working as Dates in Excel filters/sorting

$
0
0

I have several data models built in SSAS Tabular. Lot of the tables in those models havedate fields.

I don't have or need a date dimension associated to each of those date fields but I was hoping the dates will be detected as dates by excel and folks will be able to use the standard filtering and sorting options in Excel for date type fields. 

I've done plenty of searching on this topic. There are some posts that indicate how to solve it in SSAS multi-dimensional cubes but I haven't found any definitive guide on SSAS Tabular yet.  


 

SSAS cube Calculation for time to date

$
0
0

Hi Folks, 

We have a measure Called NumberOfOrders we need to calculate the measure on date.  Which is the Calculated measure 

I have used the below Expression, but In Excel Pivot Report if I applied the filters which measure isn't working. 

Any ideas please!

Expression:

IIF ( NOT ([Date].[Fiscal Year - Month].CurrentMember IS [Date].[Fiscal Year - Month].DefaultMember),
SUM(NULL:[Date].[Fiscal Year - Month].CurrentMember, ([Measures].[NumberOfOrders])),
IIF (NOT( [Date].[Calendar Year - Month].CurrentMember IS [Date].[Calendar Year - Month].DefaultMember),
SUM(NULL:[Date].[Calendar Year - Month].CurrentMember, ([Measures].[NumberOfOrders])),
IIF(NOT([Date].[Fiscal Year - Week].CurrentMember IS [Date].[Fiscal Year - Week].DefaultMember),
SUM(NULL:[Date].[Fiscal Year - Week].CurrentMember, ([Measures].[NumberOfOrders])),
IIF(NOT([Date].[Fiscal Calendar].CurrentMember IS [Date].[Fiscal Calendar].DefaultMember),
SUM(NULL:[Date].[Fiscal Calendar].CurrentMember, ([Measures].[NumberOfOrders])),
SUM(NULL:[Date].[Calendar Date].CurrentMember, ([Measures].[NumberOfOrders]))
)
)
)
)

Dax query to retreive the last bank date previous month

$
0
0

Hi

I have been struggeling with just what I think a simple thing like getting the last bankday date last month.

I have a Date-dimension with the date and a flag saying if it is a bankday or not. For some reason I don't get it to work. It is only returning the last date, not looking at IsBankDay...

LastBankDayPrevoiusMonth=  LASTDATE( PREVIOUSMONTH(FILTER(All(Dates);Dates[IsBankDay])))

I have tried so many variations now with PREVOIUSMONTH,ENDOFMONTH,MAXX etc but get empty or just the last date.

Is there someone that can point me in the right direction.

Have a nice weekend

Michael

Strange issue when processing SSAS Tabular via SSIS/SQL Agent - The JSON DDL request failed with the following error: Cannot execute the Refresh command: database 'XXX' cannot be found..

$
0
0

Hi all,

I've got an issue when trying to process a tabular model which is driving me nuts.  The issue is when processing the model (using Analysis Services Processing Task in SSIS), I get the following error: The JSON DDL request failed with the following error: Cannot execute the Refresh command: database 'xxx' cannot be found..

If I run the package directly from SSDT then the works fine, and the package also runs fine via the SQL Agent job in our dev environment.  I've tried looking online for some help but cannot find anything where someone has had the same issue.  I have a feeling that it may be a corrupt SQL installation as some of my other packages failed to run as the SQL agent job couldn't find them, even though they were there.  When I switched the proceeding packages off and ran the job then it found the previously missing package, but then couldn't find another one - strange behaviour.

Anyway, if anyone can help then I would be very grateful.

Thanks,

Mani


SSAS - MD - for SQL Server 2019 / SSDT Visual Studio 2017 (15.8.5) - Crashing on Aggregations and Remote Partitions

$
0
0
Hi,
Is it just me or anyone else having troubles designing aggregations on SSAS 2019 with SSDT VS-2017 (15.8.5)
It can't even enter aggregation design screen on several of my PCs.
throws error:
------
Method not found: 'System.Drawing.Bitmap Microsoft.SqlServer.Management.UI.Grid.GridConstants.get_IntermidiateCheckBoxBitmap()'. (Microsoft.AnalysisServices.Controls)
------
SSMS works just fine with aggregations.

Another weird problem while creating remote partitions - Visual Studio always (!) crashes with no way of completing partition setup (on both: SQL Server 2017 and 2019)

Am I just glitching or it's known problem?

How to replicate MDX Sum function behavior in DAX

$
0
0

Hi,

I am trying to write a equivalent DAX expression for a MDX query as mentioned below-

The MDX query goes like -

I already have a calculated measure with name Measure1 and I am trying to calculate another measure(supposeMeasure2) using Measure1

Create Member CurrentCube.[Measures].[Measure2] as 
   Sum([DimensionX].[X1].[X1],iif([Measures].[Measure1] > 100,1,null))

How to replicate the same in DAX?

I have tried multiple methods like COUNTROWS function to get the no of rows at least, but even the basic result is not generating as expected.

Any help in this regard will be greatly appreciated.

Thanks in advance,

Abhi8
 

Exclude data if attribute is not checked

$
0
0

Hello,

I need to exclude some data if an attribute is not checked.

For example, we have dimension Type with attributes Invoices,Orders & Other.

We have fact Amount.

If we're using the only fact without any dimension we will see total Amount, like this:

Amount

1200

If we add Type dimension to rows we will see like this:

                  Amount

Invoices    600

Orders       200

Other         400

How can I exclude information of Other? I mean if "Other" attribute is not checked do not include Amount or any other information from the fact.

So if the only fact will be used it should show:

Amount

800

I've tried to simplify data as more as possible.

Real problem is that we have the very large cube and one user asked to include to the cube information about "Other" entries, but by default, this should be excluded and include only when attribute will be selected.

 



Unknown handling

$
0
0

I have a fact table and a dimension that are link via say account id. 

My dimension processes and I can browse it. But the fact has account id's that are not in the dimension 

I have 2 dimensions based or build from SQL views. The views are a subset of accounts say account type = Income is one view and one dimension and the other view would be account type = GPM with it's own dimension.

so the fact data with account id would be in one of the 2 dimensions. 

I want to be able to see all the GPM dimension members with fact data and if there isn't a member it would appear in the unknown member. I have set up the fact to KeyNotFound = Ignore 

the dimension GPM has NUllProcessing = UnknownMember 

when I browse the cube I only see a value next to Unknown and the other members of the dimension don't appear but I know they have links into the fact data. When I run a query in sql and join the fact and dimension via account id I get rows. 

in excel I get this

Scenario NameAll
Row LabelsValue
unknows12345
Grand Total12345


Adding two columns from dimension throwing errors

$
0
0

Hi All

In my cube i have two dimensions, two attributes each. DIM1 (SAMPLEID,SAMPLERATE), DIM2 (HISTSAMPLEID,HISSAMPLERATE).

In a calculation when i add the SAMPLERATE and HISTSAMPLE RATE, in the browser i can see only nulls. Please advice. Should i move them to the fact table?

Thanks

Metric Won’t Display Results in Tab Cube

$
0
0

Hello,

I have a Tabular cube model, 2016 (1200) version, with many named folders, with many columns in each, on one particular folder, I have all the columns hidden, and have metrics down in the grid, with a typical syntax like:

Feature Revenue:=SUM('FolderName'[Feature Revenue])

I can build, and deploy, and nothing but $0.00, in three revenue columns, marked as Currently data format, 0 on precision. Yet, all the other metrics I have in this folder, display the result content just fine. I have a similar cube that uses this same set of formulas, no issues in displaying the results.

I can go to the table that feeds this folder, and select sum(colname) from tablename and yes it does have data there to sum and see the results.

What’s going on here? What can I do to fix this?

Thank you

question about data sources for multidimensional and tabular cubes

$
0
0
Hi we run 2016 enterprise everything. Is it true for either multi dimensional or tabular that once you get into incrementally loading data, that all data sources need to be on the same instance in an environ where linked servers aren't allowed?

Getting "Attribute relationships do not exist between one or more levels in this hierarchy" message

$
0
0

Hello,

 

I have a cube that has been working just fine. When I opened it today all the hierarchies are showing the Warning ! in the triangle. When I move the cursor over it I get the message, "Attribute relationships do not exist between one or more levels in this hierarchy message."

 

I have been making changes to the fact table and reprocessing everything, but the processing goes fine.

 

I tried recreating the dimensions (with the wizards) and I still am getting these warnings. I have installed SP2, but it was working (I think) after I installed it.

 

Any ideas what could have caused this and what I can do to fix it?

 

Thank you.

 

-Gumbatman

Be default expand all levels on row and column axis while executing the mdx

$
0
0

Hi,

I have two dimensions on row and two dimensions on column.

I selected parent level on both axis. If i want to see all hierarchy in expanded mode how can i write the mdx query.

Thanks,

Narendra Reddy

Calculated Member based on dimension attribute value

$
0
0
I have a report that is using a ssas multidimensional cube as data source (live connection)

I have two amount measures (local_amount and euro_amount)


I have created role dimension metric attribute (Index,MetricName)

Metric

Index  MetricNAme
1IMT
2       UST

I want to create calculate measure in SSAS , when i select MetricName="IMT" then local_amount  measure should select else euro amount would select.

Please help me on this task


SSAS Tabular Model in Excel Pivot Table issue

$
0
0

When I query a SSAS Multidimensional cube using an Excel pivot table, the "Show Fields" dropdown box shows a list of the measure group tables available in the cube. When I select a particular measure group, the "Fields" section will only display the related dimension tables. This makes it very easy for users to only select the dimensions and attributes that they can actually use.

However, when I query a SSAS Tabular database using an Excel pivot table, the "Show Fields" dropdown box shows a list of all of the tables in the tabular model including those with measures and those without.  This is not very useful when you have a large number of tables. The bigger problem however is when I select a table that has measures. When I do this, the "Fields" section will only show the table that I selected. It will not show the related tables like it does for SSAS multidimensional. Users do not have any way to determine which tables are related to the particular measures they have selected. 

Do the SSAS tabular and Excel teams plan to address this problem? Are there any workarounds for this issue besides creating Perspectives?

Thank you.

David


davidg12

I want to do a count ordered by date

$
0
0

Hi guys! I'm really new with mdx and maybe this is really simple for you, but i can not find the answer.

After a lot of reading about mdx, querys, dimensions, measures, sets... I could do a set:

Filter([Objectives].[Id Objective].MEMBERS,
([Measures].[Paid value] = 100))

Then i created a count to know how much objectives with value 100 i have.

Count([ObjectivesZero])

But what i want to know is how i can filter it by date, i mean when i put the measure in the object explorer for every year, month... The count is the same for every year, always puts to me in all the years the finally count of all the objectives with value 100.

What i want to know is how much objectives i had in differents dates. Thank you!


Viewing all 14337 articles
Browse latest View live


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