Forum Discussion
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")
Hi Anonymous - 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.
- Anonymous5 years ago
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.
4 Replies
- edhans
Community Champion
Hi Anonymous - 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.
- AnonymousNot applicable
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/
- edhans
Community Champion
Great Anonymous - Mr Excel forums are also great for this kind of thing.
- AnonymousNot applicable
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.