I have 3 data tables for 3 branches โJaudat Jamunaโ, โPaddo Priolโ, โBihot Bazarโ
And I want to write one formula in a row for showing 3 different tables results in the same row.
Like when I select (Branch = โJaudat Jamunaโ) below formula will work
Sum(Select(Jaudat Jamuna[Sub],and([Branch]=โJaudat Jamunaโ,[Date]=[_THISROW].[Date])))
Like when I select (Branch = โPaddo Priolโ) below formula will work
Sum(Select(Paddo Priol[Sub],and([Branch]=โPaddo Priolโ,[Date]=[_THISROW].[Date])))
Like when I select (Branch = โBihot Bazarโ) below formula will work
Sum(Select(Bihot Bazar[Sub],and([Branch]=โBihot Bazarโ,[Date]=[_THISROW].[Date])))
How to marge those 3 formual
Please help me
Solved! Go to Solution.
I will assume that โTHISโ table is a 4th table where you select the Branch name and a Date and then are shown a summed result for that Branch. I will call this summed column [Result] since I am not sure what exactly you are summing.
You will want to use an expression like below placed into the App Formula of this [Result] column:
SWITCH([Branch],
โJaudat Jamunaโ, Sum(Select(Jaudat Jamuna[Sub],and([Branch]=โJaudat Jamunaโ,[Date]=[_THISROW].[Date]))),
โPaddo Priolโ, Sum(Select(Paddo Priol[Sub],and([Branch]=โPaddo Priolโ,[Date]=[_THISROW].[Date]))),
โBihot Bazarโ, Sum(Select(Bihot Bazar[Sub],and([Branch]=โBihot Bazarโ,[Date]=[_THISROW].[Date]))),
0
)
The final zero (0) is a default and only assigned of the selected branch name is not know in this expression.
I will assume that โTHISโ table is a 4th table where you select the Branch name and a Date and then are shown a summed result for that Branch. I will call this summed column [Result] since I am not sure what exactly you are summing.
You will want to use an expression like below placed into the App Formula of this [Result] column:
SWITCH([Branch],
โJaudat Jamunaโ, Sum(Select(Jaudat Jamuna[Sub],and([Branch]=โJaudat Jamunaโ,[Date]=[_THISROW].[Date]))),
โPaddo Priolโ, Sum(Select(Paddo Priol[Sub],and([Branch]=โPaddo Priolโ,[Date]=[_THISROW].[Date]))),
โBihot Bazarโ, Sum(Select(Bihot Bazar[Sub],and([Branch]=โBihot Bazarโ,[Date]=[_THISROW].[Date]))),
0
)
The final zero (0) is a default and only assigned of the selected branch name is not know in this expression.
If I want to sum more items like [Sub]+[FS Sub]+[Club]
Then how can I write the formula
Please
I donโt understand the issue.
Assuming that [Sub], [FS Sub] and [Club] are 3 comuns you want to add together, then what you have written IS the expression. [Result] =:
[Sub]+[FS Sub]+[Club]
Thanks, Thanks & Thanks
Itโs Working and I learned.
This cooperation of yours prevents wasting my time in future
User | Count |
---|---|
40 | |
35 | |
30 | |
23 | |
17 |