Forum Discussion

elJukes's avatar
elJukes
Helper I
7 years ago
Solved

Best practices for multiple fact tables and time frames

Hi   I'm learning a lot from reading these forums, so thank you to everyone who posts here. I was wondering if I could tap into the collective wisdom and ask for some advice/guidance handling the f...
  • v-juanli-msft's avatar
    7 years ago

    Hi elJukes 

    So far, i can work out your requirement 1 and 2

    1.create a new table without relationship with other tables

    yeargroup = VALUES('group'[YearGroup])

    2. create measures in the group memberships fact table

    condition1 = IF(SELECTEDVALUE(yeargroup[YearGroup])=MAX('group'[YearGroup]),1,0)
    
    condition2 = IF(SELECTEDVALUE(yeargroup[YearGroup])=MAX('group'[YearGroup])+1,1,0)

    3.

    Add [YearGroup] from the new created table "yeargroup" into a slicer,

    Add [condition1] in the visual level filter of the table called "test results for that same year group/grade",

    Add [condition2] in the visual level filter of the table called "test results for their previous year group/grade"

     

    Best Regards
    Maggie

     

    Community Support Team _ Maggie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.