Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
rax99
Helper V
Helper V

Using Parameters on PBI desktop with a Live Connection to SSAS Tabular

Hello everyone,

 

I can't seem to find an answer to my query so cannot be sure if it has been asked before but I apologize if it has. 

 

So I have started to use a live connection to an SSAS tabular server for my PBI reports. The idea being, its a centralized source, and would offer better performance.

 

One of the key features many of our end users use is the input parameter function (basically enabling the report to filter/update based on an arbitrary value input into the parameter box). Unfortunately with the live connection, the parameter button has been greyed out. Anyone know of a workaround or fix for this? How else can I achieve the same function as a parameter input box?

 

see below:

showing live connectionshowing live connection

 
 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

You can use dummy table in cube, means let's say you want to take input from number, based on your requirement you can create one dummy table having one column with number series like 1 to 100 or anything.

Create table in model and don't make any relationship with that table.

Now use that column in slicer and write measure.

Let's say in your fact you have one measure and you want to display measure only if it is greater than selectedValue.

 

So create measure at power BI level/Cube level, it works fine in both condition.

Measure=if(Sum(Fact[amount])> Selectedvalue(Dummy[Series]),1,0)

Add measure in visual level filter and set measure is 1.

 

For data inputs as well you can create one data dummy table in cube and used it as slicer.

Calculated table as

Date Table =CALENDAR (DATE(2000;1;1); DATE(2025;12;31))

View solution in original post

16 REPLIES 16
Anonymous
Not applicable

You can add different column in slicers and ask users to select value in slicer dropdown. It will work fine.

 

We are doing the same thing in our project.

Hi @Anonymous ,

 

Thanks for the advice. Do you have a quick demo of this? Will the slicer have to be of pre-existing data in your tables?

Anonymous
Not applicable

Whatever data is there in your cube it will get reflected in  your POWER BI file.

 

And one more think you can not create column or tables in Power BI if source is live connection. You to do all thing in Cube itself.

 

Capture.PNG

Thanks for your input. The only issue with this method is that the data has to already be available/stored in the cube somewhere. What I need is a parameter where I can enter an arbitrary number such as '24', and I would want a measure on the page to filter the page based on the SELECTEDVALUE in the parameter box. Can such a thing be replicated via a live connection?

Anonymous
Not applicable

You can use dummy table in cube, means let's say you want to take input from number, based on your requirement you can create one dummy table having one column with number series like 1 to 100 or anything.

Create table in model and don't make any relationship with that table.

Now use that column in slicer and write measure.

Let's say in your fact you have one measure and you want to display measure only if it is greater than selectedValue.

 

So create measure at power BI level/Cube level, it works fine in both condition.

Measure=if(Sum(Fact[amount])> Selectedvalue(Dummy[Series]),1,0)

Add measure in visual level filter and set measure is 1.

 

For data inputs as well you can create one data dummy table in cube and used it as slicer.

Calculated table as

Date Table =CALENDAR (DATE(2000;1;1); DATE(2025;12;31))

Thanks for this answer @Anonymous .

However, I'm having problems accessing the SELECTEDDVALUE function, it doesn't appear to be valid on a live connection:

list of available 'SELECTED..' functions in the cube and report:

CUBECUBEPBIPBI

 

 

 

 

 

 

 

 

Could this be due to versions? Do you get the SELECTEDVALUE function appearing in your cube/report measures?

Also, last question, do you know how to generate a dummy table with values say 1 -100?  in PBI you can use generateseries function but can't seem to find a similar option in SSAS.

 

Thanks for all your help thus far, its really been appreciated.

Anonymous
Not applicable

SelectedValue and generateseries both functions work in Power BI as well as In Tabular model. Please check case sensitivity at model level.

@Anonymous 

 

Its strange now that I have that option available in the Cube but still doesnt appear in PBI. When I now deploy the dummy table GENERATESERIES(1,100,1)

 

and add the value to a slicer I get the following error:

 

pbiupdate.PNG

 

Any ideas? Also, I checked the collation setting in the SQL server (where i have imported my data from) and that's showing as CI

Anonymous
Not applicable

Create one calculated table in model with below syntax

 

GENERATESERIES(1, 100).

 

And first check values at model level only in model or by browsing cube from ssms.

So I have created the table in the cube, but notice that when it deploys it doesn't seem to deploy any of the rows:

 

dummy.PNG

 

Also in SSMS its showing as this error:

 

ssms.PNG

 

Any ideas?

 

Anonymous
Not applicable

refrest that calculated table once and check again. Becuase same thing is working in my case. Make sure this table is not connected with other tables.

Anonymous
Not applicable

in my case dummy calculated tables are not showing when i am processing model. why  is it showing in your case?

Anonymous
Not applicable

Just now i have rechecked, first do "process all" and then deploy model to analysis services.

Yes sorry so just to clarify. When 'Processing All', its only processing real tables. When deploying to services, it deployed all tables including dummy tables. But for some reason, the dummy table is showing as 0 rows transferred in the deploying status box, and not showing any errors. I've just tried again and it's still showing the same error in SSMS also.

 

Is this because I'm running on 2016 RTM?

Anonymous
Not applicable

It is released in july 2017 update so plz check your version.

Anonymous
Not applicable

if it solves your problem please mark it as solution

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.