Forum Discussion
Anonymous
6 years agoNot applicable
DAX statement does not see the table
Hi Guys ! I have got a simple problem, but for some reason under DAX it is not so simple. I have got two tables: i); all_ip_addresses, ii); chosen_ip_addresses ii); Chosen ip addresses contai...
- 6 years ago
Hi Anonymous
Try columns like below, this will check if there was any transaction in chosen_ip_addresses table related ( using active relationship ) to the table the column is in.
Column = CALCULATE( COUNTROWS( chosen_ip_addresses ) > 0 )Best Regards,
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
LinkedIn - Anonymous6 years ago
Ok Mariusz !
I think I have figured it out.InfoColumn = if(CALCULATE(COUNTROWS(chosen_ip_addresses) > 0), RELATED(chosen_ip_addresses[Description]) , all_ip_addresses[Ip])
This has solved my problem !
Thank you for your time !!
Kind Regards,
Bart
Anonymous
6 years agoNot applicable
Hey Mariusz !
That seems to be working, I am getting a list of chosen_ip_addresses when its true.
Might be a "stupid" question but, how would i get the description from chosen_ip_addresses to be visible in place of TRUE and the ip address from all_ip_addresses in place of FALSE ?
I really appreciate your help,
Kind Regards,
Bart
Mariusz
Community Champion
6 years agoHi Anonymous
Can you send a screenshot of the relationship between these two tables?
Best Regards,
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
LinkedIn
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
- Anonymous6 years agoNot applicable
Ok Mariusz !
I think I have figured it out.InfoColumn = if(CALCULATE(COUNTROWS(chosen_ip_addresses) > 0), RELATED(chosen_ip_addresses[Description]) , all_ip_addresses[Ip])
This has solved my problem !
Thank you for your time !!
Kind Regards,
Bart