
Contributor II
2023-08-01
12:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
加重平均を求める式
マスターアイテムで加重平均値を求めるメジャーを作成したいのですが、
式が分からず困っております。
添付ファイル黄色セル部分に該当する式が入っておりますが、
メジャー【生産量】の比率で【生産速度】および【生産歩留】の
平均値を出したい場合、どのような式で表現すればよいでしょうか。
EXCELではSUMPRODUCT関数を使って出せますが、
Qlik Senseにも同様な関数がありましたらご教示下さい。
2 Replies


Champion III
2023-08-01
05:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As below
re-labeled the excel columns
temp:
load
*
inline [
RowNum,A,b,c
1,250,50,90
2,300,60,70
3,200,50,63
4,500,40,78
5,600,40,98
6,450,60,95
7,350,60,85
];
exit Script;
1) sum(A*b)/sum(total A)
2) sum(A*c)/sum(total A)
Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
If a post helps to resolve your issue, please accept it as a Solution.

Contributor II
2023-08-02
02:47 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
コメントして頂きありがとうございます。
Qlik Senseのマスターアイテムのfxに下の式
sum(A*b)/sum(total A)、sum(A*c)/sum(total A)、
をいれたところ、
なぜかおかしな数字がでましたが、
sum(A*b)/sum(A)、sum(A*c)/sum(A)、
で加重平均を出すことができました。
