Forum Discussion

Viktor001's avatar
Viktor001
Frequent Visitor
5 years ago
Solved

Power BI | Slicer Filter | Summary Table generation

I have a requirement in which I have transformed data in a Table which has say 10 rows. Another table has same columns but has some different data say another 10 columns. Both these tables have a row...
  • jdbuchanan71's avatar
    5 years ago

    Viktor001 

    You need to create dimension tables that hold the unique values for ID and Type that you link to your fact tables, then you can use measures to summarize your data.  You can use DAX to create the tables:

     

    IDs = 
    DISTINCT(
            UNION(
                DISTINCT('Table 1'[ID]),
                DISTINCT('Table 2'[ID])
        )
    )
    Types = 
    DISTINCT(
            UNION(
                DISTINCT('Table 1'[Type]),
                DISTINCT('Table 2'[Type])
        )
    )

     

    Then create the relationships like this.

    Then some measure to do the sums and add the type (from your types table) to a visual.  In my sample I put the measures on the IDs table but you can put them on whatever table you want.

    I have attached my sample file for you to look at.