Pls help me in the syntax to complete my app

Solved Solved
0 20 660
1 ACCEPTED SOLUTION

<<SUM(Select(Materials[Weekly Total m],AND([DATE]>=Today()-7,[DATE]<=Today())))>> ?

View solution in original post

20 REPLIES 20

<<IF([Status]=โ€œYโ€,โ€œYesโ€,โ€œNoโ€)>>

This one is a bit of a guess, not knowing the table structure. But use ANY(Select(โ€ฆ to get one response
<<ANY(Select(Materials[Weekly Total m],TRUE))>>

Simon@1minManager.com

HI, Simon Robinson,
Thanks for your reply this information really helped me a lot.

  1. <<IF([Status]=โ€œYโ€,โ€œYesโ€,โ€œNoโ€)>> this works issue solved.
  2. <<ANY(Select(Materials[Weekly Total m],TRUE))>>
    I am getting the value of first cell of the amount 550 instead I want the total of the previous 7 days total amount ( which I have computed with the formula using select and sum function "SELECT(materials [AMOUNT], [DATE] > Today() -7) " in a virtual column [Weekly Total m]
    I want the value if [Weekly Total m] only once which is a virtual column .

Please help me in this.
Thanks in advance
Praveen

To make it easier for me to help, list the TableName[ColumnName] that are relevant here with their formuals and Iโ€™ll try to help further. Probably simple, but iโ€™m stuck struggling to understand your data structure

Ok. Try taking out the <<STARTโ€ฆ and <> statements leaving just the <<[Weekly Total m]>> in

< < END > > statements

No report is generated. mail action not triggered.

Try <<ANY(Select(Materials[Weekly Total m],[DATE]>Today()-7))>>

Getting the value of 550 (first amount value of the selected range instead of total)

If you want a sum of all the [Weekly Total m] figures then simply change to:

<<SUM(Select(Materials[Weekly Total m],[DATE]>Today()-7))>>

getting different value not the sum for the week

**<<SUM(Select(Materials[Weekly Total m],[DATE]>Today()-7))>>**result 65170
<<SUM(Select(Materials[Weekly Total m],[DATE] = Today() ))>> result 0

Maybe try wthe following

<<SUM(Select(Materials[Amount],[DATE] > Today() -7))>>

The expression is same as your VC [Weekly Total m].

Instead of adding up in VC and then trying to place that VC in template, you may wish to have that expression in the template itself.

Oh, our posts were almost at the same time.

Nice to know you solved it. All the best with your app.

Thanks Suvrutt_Gurjar thanks for your input

<<SUM(Select(Materials[Weekly Total m],AND([DATE]>=Today()-7,[DATE]<=Today())))>> ?

result 65170
<<SUM(SELECT(materials [AMOUNT], [DATE] > Today() -7))>> this works
result 4655

thanks for opening the blockage
with love Praveen
thanks for spending your valuable time in this issue

Hey Praveen,

You are welcome. My suggestion is to please allocate the solution to yourself and @1minManager.

I just posted when you had already come up with the solution and Simon helped you with the other requirement.

<<SUM(SELECT(materials [AMOUNT], [DATE] > Today() -7))>> this WORKS

Direct sum removed the [Weekly Total m] virtual column.

Thanks

Top Labels in this Space