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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.