Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Importing from cube with filters loosing data.

Hello   I have a cube from where I'm pulling data from. I have to import so I could use custom measurements. There's a table that is way too big for PBI to handle so before importing all the data I...
  • FarhanAhmed's avatar
    FarhanAhmed
    6 years ago

    Thanks !

    I always believe Dimension must be come it Rows and then you can use Matrix Visualization to swap Rows in columns 

     

    You may want to add those 2 in filters 

     SELECT 
     
     NON EMPTY { [Measures].[Count of Receipts] } ON COLUMNS, 
     NON EMPTY { ([Project POS].[Type hierarchy].ALLMEMBERS * [Project POS].[POS hierarchy].ALLMEMBERS ) }  ON ROWS 
     FROM ( SELECT ( { [Time].[Time].[Calendar Year].&[2020] } ) ON COLUMNS 
    
     FROM ( SELECT ( { [Project POS].[Type hierarchy].&[WinSCO] ,[Project POS].[Type hierarchy].&[WinPOS]} ) ON COLUMNS 
    
    
     FROM [Property Cube]) WHERE ( [Time].[Time].[Calendar Year].&[2020] )) 
     

     

    If I haven't write correct hierarchies you may want to drag and drop each member of type in SSMS and then put in the filter statement 

     

    Hopefully this will helps too..