Need Help please

I have created two virtual columns. With the help of which I want to count the unique [team name]  But my [team name] is of Enumlist types. Whose doing is single counting two names. 

First virtual column expression

SPLIT(CONCATENATE([TEAM NAME]), " & ")

Second Virtual Column Expression

COUNT(UNIQUE(FILTER("photos"[First Virtual], IN([DATE], LIST(TODAY())))))

Screenshot_20230516-072035540 (1).jpg

Solved Solved
0 14 461
1 ACCEPTED SOLUTION

Good day  @Sirfyaad

 

Try this idea it will work

[First virtual column] expression   Type of the column LIST

SPLIT(SELECT(photos[TEAM NAME],AND(CONTAINS([TEAM NAME], "&"),[DATE]=TODAY()) ),"&")
+
SELECT(photos[TEAM NAME], AND(NOT(CONTAINS([TEAM NAME], "&")),[DATE]=TODAY()))

 

[Second Virtual Column] Expression  Type of the column Number

COUNT( UNIQUE([First virtual column]))

View solution in original post

14 REPLIES 14

I think the error is in the way the Expression is written of FILTER()

W2.jpg

Examples of how to use:

  • FILTER(table-name, filter-expression)
  • FILTER("Orders", ([Customer] = [_THISROW].[Customer]))
  • FILTER("Products", ([Price] < 100))

Can you complete this expression and give it? 

Try this expression:

COUNT(UNIQUE(SELECT(photos[First Virtual], IN([DATE], LIST(TODAY())))))

As you can see in the image below. Result 02 is being shown. While team name is unique text 03. 

Screenshot_20230516-220458001 (1).jpg

Please help


@Sirfyaad wrote:

First virtual column expression

SPLIT(CONCATENATE([TEAM NAME]), " & ")


 

The Correct expression

SPLIT([TEAM NAME],"&")

 

You tell me how can I correct this expression. 

This is the correct expression. For first virtual column.

 

SPLIT([TEAM NAME],"&")

 

Not working

Good day  @Sirfyaad

 

Try this idea it will work

[First virtual column] expression   Type of the column LIST

SPLIT(SELECT(photos[TEAM NAME],AND(CONTAINS([TEAM NAME], "&"),[DATE]=TODAY()) ),"&")
+
SELECT(photos[TEAM NAME], AND(NOT(CONTAINS([TEAM NAME], "&")),[DATE]=TODAY()))

 

[Second Virtual Column] Expression  Type of the column Number

COUNT( UNIQUE([First virtual column]))

Hi @Izzat_Safrah 

How can I use this expression in template. Without any virtual column. 

By Create BotEvent Type ( Scheduled or Data Change ) for run an action.

I have created bots. The template is also being generated. Just want to put this expression in the template. Without virtual columns. 

Top Labels in this Space