Forum Discussion
Dimitris_Kats
Helper V
4 years agoCalculations based on month
Hello dear members, In my model I have created an independed table with percentages from 1%-100% and I have this formula : IF(DISTINCTCOUNT(Percentage[Value])>1, CALCULATE(SUM(Table1[Salary])...
- 4 years ago
You can create a measure with Switch statement:
SWITCH(TRUE(),MAX('Table'[Month]) IN {"Jan", "Feb", "Mar"}, SUM(SALARY),
MAX('Table'[Month]) IN {"Apr", ----- , "Dec"}, SUM(SALARY) + ([Selected Percentage] * SUM(Salary)))
Hope this helps.Regards,Kishore
Kishore_Kadhir
Resolver II
4 years ago
You can create a measure with Switch statement:
SWITCH(
TRUE(),
MAX('Table'[Month]) IN {"Jan", "Feb", "Mar"}, SUM(SALARY),
MAX('Table'[Month]) IN {"Apr", ----- , "Dec"}, SUM(SALARY) + ([Selected Percentage] * SUM(Salary))
MAX('Table'[Month]) IN {"Apr", ----- , "Dec"}, SUM(SALARY) + ([Selected Percentage] * SUM(Salary))
)
Hope this helps.
Hope this helps.
Regards,
Kishore
- Dimitris_Kats4 years ago
Helper V
Thank you so much Kishore_Kadhir that works perfectly!