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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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