Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I have 2 table with inactive relationship.
I know well how to use "userelationship" to activate the inactive one.
But my question is very simple but difficult for me to resolve.
i need to build a new table (visual) having one column from the 1st table with another column from the 2nd table, how could i do that?
noting that both are columns not measures.
i tried to convert one of those column into a measure to use "userelationship", but i couldn't.
Regards
Solved! Go to Solution.
@Maahmohammed
I think you can use LOOKUPVALUE or RELATED dax functions to fix this issue.
If you provide more details/sample data, It'll be great for us to fix the issue.
If you need information about above DAX functions, pls follow the below links
LOOKUPVALUE function (DAX) - DAX | Microsoft Learn
RELATED function (DAX) - DAX | Microsoft Learn
Thanks!
@Maahmohammed
if I understood your requirement correctly, you need to build a table visual which will take a 1 column from first table and 2nd column from another table. Both tables having inactive relationship and both should be column. if it is, then consider the below model,
I have taken two tables, DimDate and FactSales and both having inactive 1 to many relationship.
I just wanted to show unique list of Order id (FactSales) under each month & Year ( DimDate).
For example, in Sep2013, it is showing 4 unique order.
The easy way to achive this, create a measure and then hide this.
Step 1 : I have created a measure which will help to active the inactive relationship,
CALCULATE(
DISTINCTCOUNT( FactSales[OrderID(DG)] ),
USERELATIONSHIP( DimDate[DateSK], FactSales[OrderDateSK] )
)
Step 2 : Go to the Values and Column header section and turned off the text wrap option.
Below is the attached file.
Hope it helps.
Regards
sanalytics
If it is your solution then please like and accept it as solution
@Maahmohammed
if I understood your requirement correctly, you need to build a table visual which will take a 1 column from first table and 2nd column from another table. Both tables having inactive relationship and both should be column. if it is, then consider the below model,
I have taken two tables, DimDate and FactSales and both having inactive 1 to many relationship.
I just wanted to show unique list of Order id (FactSales) under each month & Year ( DimDate).
For example, in Sep2013, it is showing 4 unique order.
The easy way to achive this, create a measure and then hide this.
Step 1 : I have created a measure which will help to active the inactive relationship,
CALCULATE(
DISTINCTCOUNT( FactSales[OrderID(DG)] ),
USERELATIONSHIP( DimDate[DateSK], FactSales[OrderDateSK] )
)
Step 2 : Go to the Values and Column header section and turned off the text wrap option.
Below is the attached file.
Hope it helps.
Regards
sanalytics
If it is your solution then please like and accept it as solution
@Maahmohammed
I think you can use LOOKUPVALUE or RELATED dax functions to fix this issue.
If you provide more details/sample data, It'll be great for us to fix the issue.
If you need information about above DAX functions, pls follow the below links
LOOKUPVALUE function (DAX) - DAX | Microsoft Learn
RELATED function (DAX) - DAX | Microsoft Learn
Thanks!
Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.
How to Get Your Question Answered Quickly
Hi,
Powerquery can do this for you using merge tables.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
76 | |
76 | |
55 | |
37 | |
34 |
User | Count |
---|---|
99 | |
56 | |
53 | |
44 | |
40 |