Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi Guru's
Not sure what I am missing here.
I have two calculated measures [Trend] & [Class], I would like to count the number of customers [Customer Name] there are using the results of the calculated measures. The below refers:
My [Number of Customers] is also a measure that is just a distinct count of [Customer Name].
All the usual formulas are failing. I have added my example file for ease of reference.
Solved! Go to Solution.
Hi @Anno2019 ,
check this.
Number of New AA Customers = CALCULATE( [Number of Customers]; FILTER(SUMMARIZE('DATA Sheet';'DATA Sheet'[Customer Name];"@Trend";[Trend];"@Class";[Class]); [@Trend] = "New" && [@Class] = "AA"))
Number of New A Customers = CALCULATE( [Number of Customers]; FILTER(SUMMARIZE('DATA Sheet';'DATA Sheet'[Customer Name];"@Trend";[Trend];"@Class";[Class]); [@Trend] = "New" && [@Class] = "A"))
Number of New Customers = CALCULATE( [Number of Customers]; FILTER(SUMMARIZE('DATA Sheet';'DATA Sheet'[Customer Name];"@Trend";[Trend];"@Class";[Class]); [@Trend] = "New"))
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.
Check if this work
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks.
My Recent Blog - https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601
Thank you for the reply, and for trying to assist....I don't think it is calculating correctly.
Your formula has no errors messages but for instance. there are 3 "AA" Customers where the [Trend] is "New" but your calculation returns only 2.
There are 2 "A" Customers where the [Trend] is "New" but your calculation returns 11.
Hi @Anno2019 ,
check this.
Number of New AA Customers = CALCULATE( [Number of Customers]; FILTER(SUMMARIZE('DATA Sheet';'DATA Sheet'[Customer Name];"@Trend";[Trend];"@Class";[Class]); [@Trend] = "New" && [@Class] = "AA"))
Number of New A Customers = CALCULATE( [Number of Customers]; FILTER(SUMMARIZE('DATA Sheet';'DATA Sheet'[Customer Name];"@Trend";[Trend];"@Class";[Class]); [@Trend] = "New" && [@Class] = "A"))
Number of New Customers = CALCULATE( [Number of Customers]; FILTER(SUMMARIZE('DATA Sheet';'DATA Sheet'[Customer Name];"@Trend";[Trend];"@Class";[Class]); [@Trend] = "New"))
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.
User | Count |
---|---|
128 | |
108 | |
99 | |
65 | |
62 |
User | Count |
---|---|
137 | |
115 | |
102 | |
71 | |
61 |