Skip to content
Advertisement

How to set flag to true and also get the total while grouping

Table

Output as

Thank you in Advance

Advertisement

Answer

Use conditional aggregation:

You can also express the condition as:

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement