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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
abdul26
Frequent Visitor

Filtering Azure Cube while loading

Hello All, 

 

I am importinfg data from an azure cube. 

My query looks something like this :

let
Source = AnalysisServices.Database("--server--", "--database--", [TypedMeasureColumns=true, Implementation="2.0"]),
Model1 = Source{[Id="Model"]}[Data],
Model2 = Model1{[Id="Model"]}[Data],
#"Added Items" = Cube.Transform(Model2,
{
 
{Cube.AddAndExpandDimensionColumn, "[--table--]", {"[--table--].[--col--].[--col--]", "[--table--].[--col--].[--col--]"}, {"--name1--", "--name2--"}},
 
 in
#"Added Items"

 

I saw Cube documentation, there are some functions like Cube.Parameter , Cube.Filter.

I tried using them but I was not able to filter the data at loading stage, as this will save time and resource.

 

Has anyone done this? 
Any help would be appreciated.

 

Thanks ! 

3 REPLIES 3
abdul26
Frequent Visitor

Its an OLAP Cube, any ideas on it ?

No, I don't know MDX.  I hope someone else can help you further.

lbendlin
Super User
Super User

is this a true OLAP cube or a Power BI dataset semantic model ? If the latter then you should use DAX queries.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.

Top Solution Authors
Top Kudoed Authors