Forum Discussion
shareezsaleem
4 years agoHelper III
Multiple months selected, consider the oldest
Hi Team, I have below formula: Count Of Contracts = SWITCH(TRUE(),VALUEs(Contracts_Details[Status_Revised])="Beginning",CALCULATE(DISTINCTCOUNT(Contracts_Details[Contract Ref.]),filter('Calenda...
- 4 years ago
do you also have a numeric month column?
Then it would look like this.
CALCULATE(DISTINCTCOUNT(Contracts_Details[Contract Ref.]),filter('Calendar','Calendar'[Month No]=MIN('Calendar'[Month No])))
shareezsaleem
4 years agoHelper III
I am not able to attach files in this thread.
Can you please explain me how to ammend this formula?
CALCULATE(DISTINCTCOUNT(Contracts_Details[Contract Ref.]),filter('Calendar','Calendar'[Month Name]="Jan"))
Here Jan should be replaced by the oldest month, if no month is selected it should consider 'Jan'.
If I select May, Feb, July- then it should consider Feb (Oldest month).
Keep in mind that I have 2 Slicers- One for year and another for Month Name.
mwegener
4 years agoMost Valuable Professional
do you also have a numeric month column?
Then it would look like this.
CALCULATE(DISTINCTCOUNT(Contracts_Details[Contract Ref.]),filter('Calendar','Calendar'[Month No]=MIN('Calendar'[Month No])))