Forum Discussion

joshua1990's avatar
joshua1990
Post Prodigy
3 years ago
Solved

Structure with multiple dimension tables

Hi all! I need a bit support regarding my data model. I have 1 table (Article) that contains all articles. 1 row per article: Article Group A Group B Bike AB 1 Chair ...
  • v-yueyunzh-msft's avatar
    3 years ago

    Hi , joshua1990 

    According to your description, i test it with the data you provided.

    Here are the steps you cna refer to:

    (1)My test data is like yours, and this is the relationship between the tables:

    (2)We can create a measure :

    Measure = var _cur_process  =SELECTEDVALUE('Routing'[Process Nr])
    var _t =FILTER( 'Transaction', 'Transaction'[Process]=_cur_process)
    return
    COUNTROWS(_t)

    (3)Then we put the field we need in the matrix, and we will meet your need:

    If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem.

     

    Best Regards,

    Aniya Zhang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly