Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

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")

 

 

  • Anonymous's avatar
    Anonymous
    5 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's avatar
    edhans
    Icon for Community Champion rankCommunity 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.

    • edhans's avatar
      edhans
      Icon for Community Champion rankCommunity Champion

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

      • Anonymous's avatar
        Anonymous
        Not 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.