Forum Discussion

DavidMoss's avatar
DavidMoss
Advocate V
10 years ago
Solved

modelling new table edit

In PBI Desktop under modelling there is the option to create "New Table" using DAX calculated table functions.  What are our editing/formatting options of that new table in the PBI UX ? (Apart from ...
  • DavidMoss's avatar
    DavidMoss
    10 years ago

    In the end i resolved to using some simpe DAX. Heres what i did.

     

    1: So the original dimension table i extracted from my fact table as discussed above using Calculated table 'New Table' feature :
    dimensionTable = distinct ( Facttable [dimensionColumn] )

     

    2: Then in that new table i created a caluclated column to return a 1 if the value is 'null' or 'blank' inthe dimensionColumn

    NullTest = IF('dimensionTable'[dimensionColumn]="",1,2)

    And i used this table as a staging table for step 3

     

    3: I created a further new calculated table the final dim_Dimension table to use in the datamodel with distinct values for the end client to slice fact table. I used once again the 'New Table' option using the dax;

    dim_Dimension = FILTER('dimensionTable', 'dimensionTable'[NullTest] = 2)

     

    It seems a bit of an excessive work around, but at least now i have dynamic on the fly dimensions in  the model.

     

    PS some may say why didn't i just report off the original dimension from the fact table...well i don't like end client interacting with master fact table, in fact i like to keep all my dimensions seperate in a Kimball model architecture and all my measures seperate aswell.