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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.