Forum Discussion

markovuc's avatar
markovuc
Regular Visitor
2 years ago
Solved

What this code actailly do?

I dont understand what do code Grand Total= Calculate([Total obtained marks], ALL (Marks[Subject])) ? Please check screen shot. Calculate removes filters in visual and I dont understand what ALL do. ...
  • Fowmy's avatar
    Fowmy
    2 years ago

    markovuc 

    Imagine you have a formula to calculate the total marks obtained, and it takes into account different subjects. Now, if you use the CALCULATE function with ALL(Marks[Subject]) as an argument, it's like telling the formula to ignore the influence of the subject filter. So, on each row, you get the total marks without being influenced by the specific subject, giving you a broader picture across all subjects.


    Hope that clarifies it! If you have any specific questions or need more examples, feel free to ask.