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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

do not refer to another column in another table that is not related to the current table using dax

Currently I have two tables that are independent and THERE IS NO RELATIONSHIP between them.

Therefore, I cannot use the RELATED DAX function.

Do I have to create a relationship? Or could there be another function

More details : what I want is to calculate the % of completion :

% réalisation_exploitation (HSEDATA[Management Security Visits]*100)/RELATED(HSETARGET[Management Security Visits])
and there are the tables that I have:

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

You may be able to use the LOOKUPVALUE() function.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
amitchandak
Super User
Super User

@Anonymous ,

 

From City to sales

City Name = maxx(FILTER(geography,geography[City Id]=Sales[City Id]),geography[City])

 

From sales to City

City Name = Sumx(FILTER(Sales,geography[City Id]=Sales[City Id]),Sales[Amount])

 

In filter you can add conditions as per need

Anonymous
Not applicable

I'll give more information to explain the problem

lkalawski
Memorable Member
Memorable Member

Hi @Anonymous

Yes, to use RELATED function you have to have a relationship between tables.

 

Can you share what do you want to achieve? Maybe we can find another solution. 



_______________
If I helped, please accept the solution and give kudos! 😀

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.