Forum Discussion
IF SUMMARY Dax
- Anonymous6 years ago
Hi Anonymous ,
Normally we can use like
calculate(sum(value),allexcept(table,table[category]))to get the value group by different category then use IF() funtion to achieve the purpose.
But i'm not sure what you mean "which are changing though from month to month".
Can you explain this to us and share some sample data if you don't have any Confidential Information?
Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks Greg_Deckler and Anonymous.
Some further details to what I am looking for is.
In the below table only the Personnel costs and the temps Costs are not within the -10K and 10K range. So for these 2 categories I want to return a "true" and for the travel to return a "false".
It has to be dynamic so if next month there is another category and another and another, I need to be captured to the calculation
Thanks a lot for your help
Fanis
| Cost Category | Variance YTD |
| Personnel | 8000 |
| Temp | -7000 |
| Travel | 1000 |
| Personel | 3000 |
| Temp | -4000 |
| Travel | 1000 |
Hello Greg_Deckler , Anonymous
I started working on the solution you provided. It seems that I have other parameters to consider that make it more complicated.
Please dont spend your time on providing a solution. Thanks a lot again for the help
Tx
F