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
v-yueyunzh-msft This is great, thank you. How is source related to the new table? I am getting an error, can't determine the relationship:
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
- aashton3 years agoHelper V
v-yueyunzh-msft Ohhhh OK, I understand. I think I have it working...one more question...How did you get Other Measure and Measure 2 next to the Counts when drilling down the matrix? When I drill-down, it only shows my extra measures and the total of count (not by table), and when I expand the entire hierarch, I get below:
Drilled-down once:
Expand hierarchy:
My Measure:
Measure Drill-Through = var _type = MAX('LAC Drill-Through'[Type])var _name = MAX('LAC Drill-Through'[Name])returnIF(_type = "Lead" && _name = "Count", [Total Lead LAC],IF(_type = "Applications" && _name = "Count", [Total Application LAC],IF(_type = "Contracts" && _name = "Count", [Total Contracts LAC],IF(_name = "Lead to App Conversion", [Lead to App Conversion combo],IF(_name = "App to Contract Conversion", [App to Contract Conversion],IF(_name = "Lead to Contract Conversion", [Lead to App Conversion combo])))))) - v-yueyunzh-msft3 years agoCommunity Support
Hi, aashton
Thanks for your quick response ! Accoridng to your description, when you drill down the table visual , it dose not display the first hirearchity .
For this , we need to click the "Expand all down one level in the hierarchy" so that we can keep the first hirearchity show in this visual:
And you can also see this dimension table we have created and it corresponse each level of relationship.We can understand by this image :
And we can also see the drill down differnce in this document , you can kindly refer to:
Drill mode in the Power BI service - Power BI | Microsoft Learn
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