Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Dax | Data modeling issues

Hello everyone, I have an issue with my model and how to extract data from it using the relations between my tables.

My final output is from the key from Dim1, I'll use it to extract all columns from the Fact2.

My idea was into steps : 

1. Search in fact table for the key column(CL1) of Dim1.

2. By the CL1 in Fact tables, get back the (key column)CL2 also from the same table.

3. Using CL2 to go through Dim2 and search for (key column)CL3. 

4. Using CL3 to get back the final output which is the data from our final fact tables.

 

This is my imagination about how to illustrate the Dax code, but I was having some problems how to write it. If please can someone help me and thank you so much.

Capture.PNG

7 REPLIES 7
Anonymous
Not applicable

Hi @Anonymous ,

Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.

If these also don't help, please share more detailed information and description to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

MFelix
Super User
Super User

Hi @Anonymous,

 

When you refer you want to extract all the columns from FACT 2 what do you mean is it a table visualization, is it another table on your model?

Can you please elaborate on the expected result and an example of what you want to have?

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Anonymous
Not applicable

I have a four tables in my model( two diemnsion tables, 2 fact tables) linked to each other, in generam I want from my dimension table dim1, search by key and get back all the columns in my data table which is fact 2, as I said, I will search by cl1 of Dim1 in Fact1, and then by CL1, Ill get the CL2 keys from Fact 1 also to search for it in Dim2, and by the end, Iwill take the CL3 from the Fact2 by the CL2, and the final output is the columns from my Fact2, I want a dax code to do that, and in my visual side, I wanna display CL1 from Dim1 with all columns from Fact2

Hi @Anonymous ,

 

Create the following measure:

Show Values = CALCULATE(COUNTROWS(Fact2), CROSSFILTER(Dim2[ID2], Fact1[ID2], Both))

Now add this measure as part of your table visual as you can see in the example below the data gets filtered:

MFelix_0-1706538669103.png

 

MFelix_1-1706538703972.png

 

MFelix_2-1706538740504.png

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Anonymous
Not applicable

Hello, can I talk to you in private or anytihing to get more informations about that if you can

Sure, send  private message throug the forum.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Anonymous
Not applicable

It's done, I sent it to you

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.