Hi,
I have two tables having similar column names only difference is the value column which I want to calculate.
There is no relationship between the two tables, it is many to many. I am trying to first sum the values column from both the tables and then divide the sum values to create a measure, but when I try to check with the columns the divide measure gives incorrect values.
I further want to create another measure to get the average of the divide measure till the week where value is not zero and store it in another measure. Can you suggest where I am going wrong.
Hi, @Anonymous
May I ask if your problem has been solved? Is the above post helpful to you?
Is there an error in the percentages? What is the formula for your measure?
Could you please consdier sharing more details about it or a simple sample file without any sesentive information for further discussion?
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , You should join these two tbale on common dimensions like time and store ,and then you can analyze
divide(Sum(Table1[Col]), Sum(Table2[Col]) ) should work
if need a simple avg
AverageX(values('Date'[week]), Calculate( divide(Sum(Table1[Col]), Sum(Table2[Col]) ) ))
Thanks @amitchandak , Should I create a date table and link the weekdays to it? Or should I add a time column for both the tables and join them together?
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!
Mark your calendars and join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!
User | Count |
---|---|
369 | |
100 | |
66 | |
55 | |
42 |
User | Count |
---|---|
364 | |
115 | |
79 | |
63 | |
53 |