SELECT expression help

NCD
Silver 2
Silver 2

untitled.png

I want to have two Virtual Columns to get the summed cost of

Spring + Summer 

and

Fall + Winter

How can I express this?

Solved Solved
0 3 98
2 ACCEPTED SOLUTIONS

Select() expressions in VCs tend to be sync time expensive especially if you have large number of records . Please explore using security filters etc. if that is the case.

You can get the necessary values by using the expressions something like

SUM(

         SELECT(Season Table[Cost],

                     AND( [Year]=[THISROW].[Year],

                    OR([Season]="Spring" , [Season]="Summer")

                            )

                        )

                )

 

Similarly for "Fall" and "Winter"

View solution in original post

I think in this case should be

[Year]=[_THISROW]

 Since Season Table[Year] is a key

View solution in original post

3 REPLIES 3

Select() expressions in VCs tend to be sync time expensive especially if you have large number of records . Please explore using security filters etc. if that is the case.

You can get the necessary values by using the expressions something like

SUM(

         SELECT(Season Table[Cost],

                     AND( [Year]=[THISROW].[Year],

                    OR([Season]="Spring" , [Season]="Summer")

                            )

                        )

                )

 

Similarly for "Fall" and "Winter"

I think in this case should be

[Year]=[_THISROW]

 Since Season Table[Year] is a key

NCD
Silver 2
Silver 2

@Suvrutt_Gurjar @SkrOYC 

Thank you very much! 🙂

Top Labels in this Space