Forum Discussion
Table set-up - Union into one table
- 3 years ago
Hi , aashton
According to your screenshot,I see you have created the dimension table.For this table is used for the columns headers . And you put the right place,the row header is used by the fact table.
For your need ,we do not need to create relationship between the dimension table and the fact table.
Instead we need use the measure to get the value without relationships between tables.You do not worry about you get an error code when you put this three fields on the visual,we just need to create a measure to put on the value field so the error code will disappear!
And the dimension table is created by which fields you need to put on the column headers,in my test data ,they are “application count,contracts count,other measure ,other measure 2”.You need to modify this dimension table in your side based on your situation.
And then you can see the [Measure],this is to get the value based on the column headers,you also need to modify this measure based on your situation!
The [Measure2] is used for the drill through due to now when we drill through we convert the [Type] field instead of the [Table],so we need to create a new measure to transfer this filter to what we want !Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
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 , aashton
Thanks for your quick reponse! And i am sorry for that this can not help you solve the problem.
This may be a problem caused by different contexts, but I don't have your test data so it's hard to tell what the problem is. If it is convenient, can you provide me with some test data (which does not contain sensitive data and can reproduce your problem), and then provide me with the expected results you want in a table form, so that I can help you better?
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
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
Hello v-yueyunzh-msft !
So I did get the 2 measures to work, Applications Source and Contract Source. The drill-through is still kind of funny, sometimes it shows records from a different source than the one I clicked on...still trying to work that out. But I have a second part of this I am trying to figure out. See attached I've created two measures, for Application Count and Contract Count. I need to display these in a matrix by source. I've put these 2 new measures on Page 2 for the drill-throuh....However, when drill-through on the matrix, it only brings the filter of the source not the tables. So if I click on Agency Application Count of 5, it shows the 5 Application, plus any contracts with the source of Agency. Is there a way to get it to filter on the table and source?
https://drive.google.com/file/d/1ZCASD5RnFeqP_lO-da_qdVS7q_zvi7tb/view?usp=sharing