Forum Discussion
albatross19
5 years agoFrequent Visitor
Creating a column from a Measure
Hi everyone! I want to be able to calculate the maximum number of calls that happen on a given day within a date range. I am using a simple CALCULATE(COUNT(DNIS)) To obtain the ...
- 5 years ago
Hi albatross19 ,
Not sure whether I have caught your meaning,see the method below:
Create 2 columns as below:
Related date = CALCULATE(MIN('Table (2)'[Mail Drop Date]),FILTER('Table (2)','Table (2)'[Mail Drop Date]>EARLIER('Table'[Date])))Date Quantity = CALCULATE(COUNT('Table'[quality call]),FILTER('Table','Table'[Related date]=EARLIER('Table (2)'[Mail Drop Date])))+0And you will see:
For the related .pbix file,pls see attached.
Best Regards,
KellyDid I answer your question? Mark my post as a solution!
v-kelly-msft
5 years agoCommunity Support
Hi albatross19 ,
Not sure whether I have caught your meaning,see the method below:
Create 2 columns as below:
Related date = CALCULATE(MIN('Table (2)'[Mail Drop Date]),FILTER('Table (2)','Table (2)'[Mail Drop Date]>EARLIER('Table'[Date])))Date Quantity = CALCULATE(COUNT('Table'[quality call]),FILTER('Table','Table'[Related date]=EARLIER('Table (2)'[Mail Drop Date])))+0
And you will see:
For the related .pbix file,pls see attached.
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
albatross19
5 years agoFrequent Visitor