Forum Discussion
New column for total based on another table
- Anonymous3 years ago
Hi AliceA ,
I tried to reproduce it.
And you can create a calculated column in Customers table to count the number of purchases.
Count = CALCULATE(COUNT(Purchases[Purchase ID]),FILTER('Purchases',[Customer ID]=EARLIER(Customers[Customer ID])))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.
Hi, you can create a table
Then on your customer table create a column
Hi Olga,
Thank you, but it doesn't look like the newly created table will be influenced by the other columns in the Purchases table... I really need this total to change based on them (such as the date).
Would you have a solution for this issue, please?
Alice
- olgad3 years agoResident Rockstar
Apologies Alice, misread your last sentence as "you dont want the table to be affected".
There is no such thing as a dynamic calcualted column in this tool. So let us clarify a couple of questions then, why dont you have a separate date table? What are the fileds you want to use from purchase table to filter the Customer table? Only the date or something else?
We could create 2 measures first the count then classification based on the purchases table.If you give a bit more detail how you intend to display it in the end and how it shall function, I can figure how to help you.