Forum Discussion
Structure with multiple dimension tables
- 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
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
- joshua19903 years agoPost Prodigy
v-yueyunzh-msft : Thanks a lot! That works.
Another question: What if I select two Articles with 2 different process nrs. All process nrs will be display with values for each article. But I would like to get the text "NA", if a process nr is not part of an article.
How would you do that?
- v-yueyunzh-msft3 years agoCommunity Support
Hi , joshua1990
You can try this dax :
Measure = var _cur_process =SELECTEDVALUE('Routing'[Process Nr]) var _t =FILTER( 'Transaction', 'Transaction'[Process]=_cur_process) return IF(COUNTROWS(_t)=BLANK(),"NA",COUNTROWS(_t))The result is as follows:
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
- joshua19903 years agoPost Prodigy
v-yueyunzh-msft : Thanks, but that will display every process step. I would like to get all process steps based on the selected articles. With your approach I get all process steps displayed.
How can I reduce the process steps in the column based on the selected articles?