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
ruthhacche
Helper III
Helper III

CUBE SET EXPRESSION

I am struggling with my cibeset when I have more than one part to the expression.  

I can get the following to both work to create a filtered list of orderIDs
=CUBESET("Power BI - SALES","[Calendar].[FiscalYear].&[2021]*[ORDERS].[ID SFC order].children","OrderIDS")

=CUBESET("Power BI - SALES","[CUSTOMER].[ID SFC Account].&[001b000000UUchgAAD]*[ORDERS].[ID SFC order].children","OrderIDS")

 

But I cannot get both red filters to apply because i do not know the syntax - any advice to where I can learn how to do this?

=CUBESET("Power BI - SALES","[CUSTOMER].[ID SFC Account].&[001b000000UUchgAAD]*[Calendar].[FiscalYear].&[2021]*[ORDERS].[ID SFC order].children","OrderIDS")

 

 

2 ACCEPTED SOLUTIONS
edhans
Super User
Super User

Hi @ruthhacche - I moved this to the DAX area, from Power Query, though this really isn't DAX, but Excel. Power BI has no "Cubeset()" function. Someone here might be able to answer, but you may also get more traction in the Excel forums here.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

I have solved it!!!!

=CUBESET("Power BI - SALES"," ([CUSTOMER].[ID SFC Account].&[001b000000UUchgAAD],[Calendar].[FiscalYear].&[2021]) *[ORDERS].[ID SFC order].children","OrderIDS")

 

The filters need to be in brackets separated by a comma - makes sense.

View solution in original post

4 REPLIES 4
ruthhacche
Helper III
Helper III

thank you - yes I was coming at this from the point of examining how I can get more out of my PBI datasets.  I have also posted it on Mr excel https://www.mrexcel.com/board/threads/cube-set-expression.1147602/

 

Great @ruthhacche - Mr Excel forums are also great for this kind of thing. 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

I have solved it!!!!

=CUBESET("Power BI - SALES"," ([CUSTOMER].[ID SFC Account].&[001b000000UUchgAAD],[Calendar].[FiscalYear].&[2021]) *[ORDERS].[ID SFC order].children","OrderIDS")

 

The filters need to be in brackets separated by a comma - makes sense.

edhans
Super User
Super User

Hi @ruthhacche - I moved this to the DAX area, from Power Query, though this really isn't DAX, but Excel. Power BI has no "Cubeset()" function. Someone here might be able to answer, but you may also get more traction in the Excel forums here.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

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.

Top Solution Authors