Forum Discussion

VietNor's avatar
VietNor
New Member
1 year ago
Solved

Adding rows to a table

Hello, I have a data table with 3 columns: Year, Class, Student wich I get from Query,  and a Dim_school  table School  Class School I  Class A School I   Class B School I  Class C ...
  • danextian's avatar
    1 year ago

    Hi VietNor 

     

    You can duplicate the query, rename School to Class and Append the duplicate to the original. This approach will add an extra overhead in the ETL process so this can cause refresh to take longer dependin on the data size.

    You can also create a separate dimensions table with a single column for both class and school but since both are not in the same column in the fact table, you must use a disconnected table approach and filter the visual indirectly using measures.

    Please see the attached sample pbix.