Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I am trying to test if there is a relation between two tables in power bi desktop by creating the following column :
Etat Paiement = IF(RELATEDTABLE('gest_asso ticket_rl');"Paid";"Not Paid")
There is a relation between the two tables but i need to flag the row that are not related for the relation Activié => ticket_rl.
I have an error trying to compute the code mentionned before.
Anyone can give me a hint or a way to achieve that i want ?
Kind regards,
Mohammad
Solved! Go to Solution.
You could try adding a calculated column to 'Activité' using the following code. This will put a number for rows that match and you can use a filter to help identify the rows with no related rows.
Count of Related Rows = CALCULATE(COUNTROWS('gest_asso ticket_rl'))
Does that help you?
HI @Anonymous
What columns do you use in the relationship between the two tables?
And are you trying to find the rows in 'gest_asso ticket_rl' that don't exist in 'Activié'
Phil
Hi @Phil_Seamark,
Thanks for your reply.
The column used for the relationship between the two tables id ID.
What I am trying to do is to find rows in 'Activité' that do not exist in 'gest_asso ticket_rl'.
Mohammad
You could try adding a calculated column to 'Activité' using the following code. This will put a number for rows that match and you can use a filter to help identify the rows with no related rows.
Count of Related Rows = CALCULATE(COUNTROWS('gest_asso ticket_rl'))
Does that help you?
Yes thank you very much, it works and fits my needs.
Mohammad
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
93 | |
84 | |
66 |