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.
Hello. I am trying to solve an issue using an inactive many to one relationship I dont know what i am doing wrong though, I hope someone can help.
The scenario:
I have a "from - to" table ("produto_espelho_v2") that gives me the correspondency between two item codes in my DB. I created calculated columns on that table to return the sales value and sales quantity from my fact table ("Venda Pricing"). In between them I have my product table with the description and item codes. All I want is for PBI to read my "from" product id (lets call it product A), check its "to" product id (product B) and return the total sales from that product (product B sales). I also want it to be done just using only the "from" product ID, so read product A filter my fact table and return my product A sales on another column.
My data structure:
My formulas for the calculated columns (for the quantity the formulas arethe same just changing the column I am getting from my fac table "venda pricing"):
Been breaking my head on this one for a couple of days, so i decided to as for help. Any clues?
Hi @Anonymous ,
About USERLATIONSHIP in calculated column, you can refer to
https://www.sqlbi.com/articles/userelationship-in-calculated-columns/
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , are you creating calculated columns ?
I doubt USERELATIONSHIP can work well with calculated columns
refer 4 ways to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8
Yes i am using creating calculated columns, I didnt know use relationship had issues with calculated columns...
How can I force a ralationship in a calculated column then ? I have another model with the same structure ans in that model, these formulae work fine... so I thought they would work fine in this context as well (te only difference is the bigger fact table )
Ill take a look on your links and try some of them out, will post later if I suceeded ! Thank you in advance
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 |
---|---|
107 | |
98 | |
77 | |
66 | |
53 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |