הצטרפו לקבוצות שלנו לקבלת עדכונים מרוכזים פעם בשבוע:

ווטסאפ:
http://wa.dwh.co.il
טלגרם:
http://telegram.dwh.co.il

union in Cognos

More
15 years 2 months ago #6610 by Stanislav
union in Cognos was created by Stanislav
:question: יצרתי 2 שאילתות.עבדות בנפרד מצוין.בכל אחת יש שדה שמחשב count.כאשר מתבצעת שאילתה union שדה משותף מחשב סכום שתי שדות בכל שורה.ניסיתי גם framework & cognos אותן תוצאות


select count(field1),field2 from table1
result:
:smile: 25,'A'

select count(field3),filed4 from table2
result:
:smile: 19,'B'


select count(field1),field2 from table1
union
select count(field3),filed4 from table2

:sad: result is

:silly: 44,A
:silly: 44,B

instead of
suspected the result
25,A
:question: 19,B

Please התחברות to join the conversation.

More
15 years 2 months ago #6613 by לינוּר
היי,
תוכל לרשום בדיוק מה עשית? אצלי עובד מצויין.

Linur Serero
cognos.dwh.co.il/

Please התחברות to join the conversation.

More
15 years 2 months ago #6614 by דוד פוראי
הי סטניסלב,

הייתי בודק את הגדרות האגרגציה של השדות האלה בFWmanager. נסה לשנות את האגרגציה שלהם בדו"ח ל None ובדוק אם מתקבלות התוצאות הרצויות. אם כן - אז הגדרת האגרגציה שלהם בFWmanager כנראה לא נכונה.

תגיד לי אם עבד.

דוד.

Please התחברות to join the conversation.

More
15 years 2 months ago #6616 by Stanislav
Checked in FW: aggregation is None
שמתי לב שבCOGNOS בהגדרות UNION יש שדה הגדרת AGGERGATION CALCULATED
עוד לא בדקתי נושא

Please התחברות to join the conversation.

More
15 years 2 months ago #6625 by לינוּר
היי,
האם בדקת? האם נפתרה הבעיה?
תודה רבה,
לינוּר סררוֹ

Linur Serero
cognos.dwh.co.il/

Please התחברות to join the conversation.

Moderators: לינוּר
Time to create page: 0.277 seconds