Traditionell träplankring för ditt hem kommer alltid att vara det bästa valet i alla sidospår. Men du behöver rätt siding entreprenör för att hjälpa dig att välja den bästa trä siding med minst antal sidor underhåll. Det finns många olika typer av träskärning skapad med hjälp av underparmaterial. Don8217t låt din nexthellip Läs mer Professionella taktjänster och takreparationer till överkomliga priser Om du har takläckageproblem, vänta don8217t att kontakta en takentreprenör. Långa takläckor verkar ofarligt i början, men kan förvandlas till allvarliga problem snabbt. Med långvarig takläckage kan det orsaka mögelväxt, skadade tak, möbler. Ring oss idag om du behöver hjälp med att läsa Läs mer När du försöker minska din home8217s värmekylningsräkning, finns det inga bättre sätt att spara pengar än att ha nya Windows - eller träutbytesfönster installerade. Framför allt, med den nya federala skatteavdraget på upp till 1500 där8217s ingen anledning att inte. Att ha en vacker däck kommer alltid att ha en positiv avkastning på ditt fastighetsvärde. Att lägga ett däck är ett billigt sätt att utöka ditt bostadsutrymme. Den genomsnittliga kostnaden för att bygga ett däck är ungefär 7 000 och ger en avkastning på cirka 15 000 när du säljer ditt hem 8211 Inte till dåligt, rätt Så överväga att ha ahellip Läs mer Att välja rätt siding entreprenör är avgörande för alla sidospår. Oavsett om det går att installera vinylfasad över sidospår eller helt avlägsna din befintliga sidospår för ny sidospår. Att ha en professionell siding entreprenör som kan ge dig den bästa lösningen för den smidigare siding installerar kommer att spara mycket huvudvärk, time andhipip Läs mer Bra företag att hantera Great Company att hantera Vi tilldelade MBM Construction att göra om taket . Mycket nöjd med resultatet och prissättningen. De startade taket som lovat och rengjordes runt huset varje dag. Kommer rekommendera till vänner. Se här hem: takläggning Framingham MA mdash Joan King, Framingham, MA MBM Construction är betygsatt 5 5 baserat på 3 recensioner. Att hitta rätt entreprenör ska inte vara smärtsam Att göra rätt bostadsförbättring eller ombyggnadsprojekt kan lägga till verkligt värde till någon typ av hem, om det görs korrekt och effektivt av en licensierad och försäkrad professionell. Använda högkvalitativa material som är energieffektiva, tilltalande och viktigast, tillförlitliga, till exempel lågviktigt vinylfönster. fönsterbyten. singeltak och anpassade däck kommer att lägga till verkligt värde. I de flesta fall kan du förvänta dig och omedelbar avkastning på din investering efter att ha gjort dessa hemförbättringar. Välj en entreprenör som kommer att få jobbet, gå igenom varje steg i projektet från början till slut utan några dolda extrafunktioner. Våra hemförbättringstjänster har gett oss en fördel över andra bostadsbyggnadsföretag. Att vara en av de bästa serviceleverantörerna inom sidospår, takläggning, utbytesfönster och rumtillägg. ger oss stor köpkraft genom våra leverantörer och kan i gengäld passera besparingarna till dig Så varför välja oss som ditt hembyggnadsentreprenör Vi lyssnar på era behov. Vi använder inte högtrycksförsäljning, eller försöker sälja dig något du inte behöver eller vill ha. Kommunikation är nyckeln till alla typer av renoveringsprojekt och vi vill att ditt projekt ska få det bästa möjliga resultatet. Du får ett detaljerat projekt beräknat slutförd - utan huvudvärk Du kommer också att få en av de bästa garantierna i hemförbättringsföretaget, om du någonsin behöver använda den. Vilken typ av hemförsörjningstjänster letar du efter Välj en takentreprenör som kommer att arbeta i ditt bästa intresse och inte i hur mycket vinst han kan göra genom att klippa hörn. Som takentreprenörer tror vi på att använda de bästa takbjälkarna och underlaget för att ge våra kunder sinnesro. För mer information om taktjänster, besök: Commercial Flat Roofing eller Residential Roofing Inte alla vinyl och trä sidospår är desamma. Välj en professionell siding entreprenör som kommer att hjälpa dig att förstå vilken typ av vinyl siding att undvika, och vad kommer att ge dig bästa valet för din pengar på lång sikt. Från en standard tryckbehandlad däck, mahagony däck, eller en komposit däck - vi har fått dig täckt. Läs mer om Decks and Porches Deck buildersexplain Villkorstyper Låt mig försöka svara på din fråga en efter en ltbgtExempel på en tillståndstyp Du definierar tillståndstypen för en specialmaterialrabatt. Du anger att systemet beräknar rabatten som ett belopp (till exempel en rabatt på INR 1 per försäljningsenhet). Alternativt kan du ange att systemet beräknar rabatten i procent (till exempel: en 2 rabatt för order över 1000 enheter). Om du vill använda båda möjligheterna måste du definiera två separata tillståndstyper. Detta villkor värde hämtas från Material Master Accounting 1 Visa var du upprätthåller standardpris och glidande genomsnittspris I prissättningsförfarandet, om alla tre fält är tomma, kommer respektive tillståndsvärde att flöda till bokföringsdokument förutsatt att villkoret upprätthålls i VK11. Steg för prisproceduren kommer att fungera enligt följande: - ltbgt1) Stegnummer Antal som bestämmer sekvensen av villkoren inom ett förfarande. ltbgt2) Condition counter Åtkomstnummer för villkoren inom ett steg i prissättningsförfarandet. Under automatisk prissättning tar systemet hänsyn till den sekvens som anges av räknaren. ltbgt3) Tillståndstyp Tillståndstypen används för olika funktioner. I prissättningen kan till exempel tillståndstypen skilja mellan olika typer av rabatt i utmatningsbestämning, mellan olika utmatningstyper som orderbekräftelse eller leveransnotering i satsvis bestämning mellan olika strategityper. Beskrivning av tillståndstypen ltbgt5) Från referenssteg (för procentuella förhållanden) ltbgt Villkor steg vars värde utgör grunden för procentuella tillägg. Om du anger ett referenssteg samtidigt, sammanfattas tillståndsvärdena för de två steg som anges och villkorsvärdena för stegen däremellan. I detta fall beräknas procentuella tillägg på grundval av totalen. Nivå CType Beskrivning FromSt ToSt ActKy 20 A-B2 Löner 30 A-B3 Övertidslöner 40 A-Z1 Semesterbonus 10 30 E11 Tilläggsbeloppet för steg 40 läggs till totalt steg 10 till 30. ltbgt6) Till referenssteg (för procentandelar) Villkor steg upp till vilket tillståndsvärdena för de föregående stegen är sammanlagda. Procentandelskostnader beräknas på grundval av totalen. Om du anger ett referenssteg samtidigt, sammanställs tillståndsvärdena för de två steg som anges och tillståndsvärdena för stegen däremellan. Steg CT-typ Beskrivning FromSt ToStep AcctKey 20 A-B2 Löner 30 A-B3 Övertidslöner 40 A-Z1 Semesterbonus 10 30 E11 Tillägget för steg 40 läggs till totalt steg 10 till 30. ltbgt7) Villkor bestäms manuellt Villkor, som är med tanke på denna indikator i prissättningsförfarandet ingår endast i bestämning (prisbestämning, utgångsbestämning, satsbestämning), antingen om de matas in manuellt, till exempel på överblickskärmen för prissättning eller om de överförs från en extern process, såsom som kostar. ltbgt8) Villkor är obligatoriskt Anger om villkoret är obligatoriskt när systemet utför prissättning med hjälp av denna prissättning. Om du till exempel alltid vill inkludera ett skattemässigt villkor (moms eller moms) vid prissättning, kan du ställa in den här indikatorn för lämplig skattevillkorstyp. ltbgt9) Villkor används för statistik Den här indikatorn gör att en överskott eller rabatt kan ställas in i dokumentet statistiskt (det vill säga utan att ändra värdet). ltbgt10) Utskrifts-ID för villkor linesltbgt Kontrollerar problemet med tillståndslinjer när du skriver ut dokument som orderbekräftelser eller fakturor. I utgåvor föregående 4.0 är följande tryckindikatorer tillgängliga: 149. Tillståndslinjen skrivs inte ut 149 X. Villkorlinjen skrivs ut på objektnivå 149 S. Tillståndslinjen skrivs ut i totalblock Följande standardlogik anges för dessa tryckindikatorer: o POS för den sista tillståndslinjen bestäms med X. o Alla tillståndslinjer som innehåller ett objekt mindre än POS i prissättningsförfarandet skrivs ut endast om utskriftsindikatorerna X eller S är inställda. o Alla tillståndslinjer som innehåller ett objekt som är större än POS i prissättningsförfarandet, som kommer före den första skattevillkorslängden och som har ett icke-statistiskt momsvillkor, får utskriftsindikator S. Detsamma gäller för tillståndslinjer som innehåller en vara större än POS i prissättningsförfarandet, som kommer efter den första skattevillkoren och ett aktivt icke-statistiskt momsvillkor. o Skickslinjer som representerar en skattevillkorstyp skrivs alltid i totalblock med tryckindikator S (inställd internt eller externt). o Skickslinjer som representerar en tillståndstyp som inte är en skattevillkorstyp skrivs endast ut med tryckindikatorn S (inställd externt eller internt) om tillståndsläget för tillståndslinjen inte är noll. Konditionslinjer som inte representerar en tillståndstyp (dvs. subtotaler) skrivs endast ut med tryckindikatorn S eller X (inställd externt eller internt) om tillståndsläget för tillståndslinjen skiljer sig från tillståndsvärdet för den tidigare villkorlinjen i prissättningen procedur. För att få en bättre översikt över denna process finns 8 fler utskriftsparametrar från Release 4.0. Dessa utskriftsindikatorer kan emellertid inte blandas med de tre tidigare skrivindikatorerna X och S i prissättningsförfarandet. Det innebär att de nya indikatorerna endast beaktas om inga villkor i prissättningsförfarandet innehåller tryckindikatorer X eller S. De nya tryckindikatorerna har följande inställningar och motsvarande påverkan på bearbetningen. o A. totalt: allmänt o B. totalt: om värdet lgt noll o C. totalt: om värdet ltgt värde för föregångaren o D. totalt: om värdet lgt noll och värdet lgt värde för föregångaren o a. på objektet. allmän o b. på objektet. om värdet lgt noll o c. på objektet. om värdet lgt värde av föregångaren o d. på objektet. om värdet lgt noll och värdet ltgt värdet av föregångaren ltbgt11) Villkor subtotalltbgt Kontrollerar om och i vilka fält villkoras mängder eller subtotaler (till exempel en kundrabatt eller kostnaden för ett material) lagras. Om samma fält används för att lagra olika tillståndsbelopp, uppgår systemet till de enskilda beloppen. Dessa tillståndsbelopp eller subtotaler används som utgångspunkt för ytterligare beräkningar. Du kan till exempel vilja ha en del av alla rabatter som ingår i prissättningen för en försäljningsorder. Om kravet är uppfyllt (SY-SUBRC 0), tar utgångsbestämning också hänsyn till utdatatypen eller åtkomstsekvensen, för vilken kravet har angivits. Ett eventuellt krav skulle vara att en skillnad bör göras mellan dokumentvaluta och lokal valuta. ltbgt13) Villkor för alternativ beräkning typeltbgt Alternativ formel till formeln i standardsystemet som bestämmer ett tillstånd. ltbgt14) Alternativ formel för villkorbasen värdeeltbgt Formel för bestämning av tillståndsbasen som ett alternativ till standarden. En absolut huvudrabatt fördelas till exempel i standardsystemet i enlighet med det ackumulerade värdet av objekten. Om systemet emellertid fördelar den absoluta headerrabatten i enlighet med volymen, leder en rabatt på 30 med följande rabatter: ltbgt15) Konto keyltbgt-nyckel som identifierar olika typer av GL-konto. Kontosnyckeln gör det möjligt för systemet att posta belopp för vissa typer av inkomstkonton. Systemet kan till exempel posta fraktkostnader (genereras av fraktpriset) till det relevanta fraktintäkten konto. ltbgt16) Kontonyckel - periodiseringsbestämmelserltbgt Nyckeln som identifierar olika typer av GL-konton för periodiseringar eller avsättningar. Med hjälp av kontonycket kan systemet lägga in belopp för vissa typer av periodiseringskonton. Till exempel rabattupplupningar som beräknas utifrån prissättningsvillkor kan läggas till motsvarande konto för rabattupplukningar. ltbgtreward snälla om det här är mycket användbart för dig En av de svåraste koncepten för att förklara när det införs nya människor till Business Objects är kontext. Jag föreställer mig nu att bloggläsare som har arbetat med verktygen för ett tag har börjat knyta huvudet i överenskommelse, bara för att sluta och säga, 8220Hey, vänta en sekund, pratar Dave om universums sammanhang eller rapporterar beräkningskontexten8221 Och svaret är, såklart ja. Båda koncepten kan vara ganska komplicerade och ta ett tag att förstå fullständigt. Eftersom jag redan har skrivit ett antal blogginlägg om universums sammanhang trodde jag att det var dags att vända min uppmärksamhet till rapporttekniken för beräkningssammanhang. Observera att detta koncept används i Desktop Intelligence och Web Intelligence men inte i Crystal. Detta inlägg är endast avsett att vara en översikt. Jag har planer på en detaljerad post på var och en av de olika kontextoperatörerna där jag kommer att gå in på mycket djupare. För detta inlägg är mitt mål att presentera konceptet och ge några grundläggande definitioner. Introducerande beräkningskontext Standardberäkningskontexten definieras av de dimensioner som deltar i ett rapportblock. Det är den här funktionen som möjliggör åtgärdernas dynamiska natur. När dimensioner tas bort från eller läggs till i ett block ändras sammanhanget och måttmängderna ändras också. Detta styrs av projektionsfunktionen som är inställd på varje mått av universitetsdesignern. En rapportförfattare vill emellertid ibland att en åtgärd ska fastställas till ett visst värde. Procentandelar är ett riktigt enkelt exempel. För att beräkna en bidragsprocent måste jag dividera varje enskilt värde med den totala totalmängden. För att kunna göra det måste jag veta hur man genererar totalumman var som helst jag vill ha den. För att göra det. Jag behöver förstå hur man använder de olika beräkningskontextoperatörerna. Kontextoperatörer Det finns en enkel (men kraftfull) uppsättning kontextoperatörer som jag kan välja mellan. Jag har för avsikt att kort definiera var och en i det här blogginlägget och dyka sedan in i mer detalj i framtida inlägg. Som jag nämnde när jag började, är standardvärdet för en åtgärd baserat på de dimensionsvärden som finns i blockstrukturen. Jag kan ändra vilken av dessa dimensioner som påverkar beräkningen med någon av följande tre kontextoperatörer. I används för att specificera exakt vilka dimensioner som ska inkluderas i ett sammanhang. Andra dimensioner i blocket ignoreras. Att lägga till borttagna element från blocket påverkar inte denna beräkning om inte en borttagen dimension specificerades i sammanhanget. I så fall visas ett MULTIVALUE-fel. ForEach används för att inkludera en dimension i ett sammanhang. Beräkningskontexten påverkas fortfarande av andra värden i blocket. ForAll används för att utesluta en dimension från ett sammanhang. Övriga dimensioner av blocket kommer fortfarande att övervägas. Att lägga till eller ta bort värden från ett block kan ändra värdet, men det ignorerar alltid ForAll-objekten. Operatörerna listade framför allt kräver en eller flera dimensioner som en del av deras syntax. Beräkningskontext kan emellertid specificeras med mer än en uppsättning av dimensionvärden. Det finns en rad nyckelord för rapportstruktur som kan användas också. I Rapport sätts sammanhanget i rapporten eller 8220grand total8221-nivån. Alla formler med dessa nyckelord för sammanhanget kommer att returnera en total summa. Observera att summan fortfarande kan påverkas av rapportfiltren. I Block ställs samman kontexten för varje block sektion. I åratal har jag väntat på att den här inställningen ska bytas om för att återspegla hur det verkligen fungerar, men det har inte gjort det. Jag antar det8217s för bakåtkompatibilitet. Om det bara finns ett block på en rapport kommer 8220In Block8221 och 8220In Report8221 att vara densamma. Men när ett block är uppbrott i sektioner, kommer det här sammanhanget att generera totalt för varje sektionsvärde. Därför föreslår jag att ett bättre namn kan ha varit 8220In Section8221 istället, men så länge jag vet vad det gör bestämmer inte det specifika ordet. I Body är standardstandardkontexten för varje rad av data. Med Desktop Intelligence har vi möjlighet till In CurrentPage vilket kan vara ganska användbart och tyvärr ännu inte tillgängligt i Web Intelligence. Förmodligen don8217t måste jag förklara hur totalt 8220CurrentPage8221 är härledd. Slutligen kan dessa nyckelord visas flera ställen i en formel. De vanligaste är kontextinställningarna 8220input8221 och 8220output8221, men vissa funktioner (t. ex. RunningSum () till exempel) har också ett 8220reset8221-sammanhang. Inmatningskontext används för att bestämma ingångsvärdena för formeln. Utgångskontext används för att bestämma produktens omfattning. Återställ kontext används för att bestämma när en körfunktion startar över vid noll. Mått som refereras i ingångskontexten behöver inte visas i blocket. Utmatnings - och återställningsdimensionerna måste visas i blocket för att fungera korrekt. För många beräkningar fungerar standardinmatningskontexten bra. Jag ska visa ett exempel där det är viktigt att förstå ingående kontext senare. För tillfället skulle jag vilja gå vidare till ett enkelt exempel. Enkelt beräkningskontext Exempel It8217s är svårt att fullt ut förstå några av subtiliteterna i beräkningskontexten utan bra exempel. För det här inlägget kommer jag att ge ett enkelt men vanligt exempel som jag nämnde tidigare: bidragsprocent. Jag börjar med ett enkelt block med en dimension (utväg), en åtgärd (intäkter) och en total summa som visas här. Det här blocket har redan en total på det. Om det här var ett typiskt kalkylblad kunde jag referera till det totala värdet med en radkolumnadress, men det fungerar inte i Web Intelligence. Det betyder att jag måste använda en annan teknik för att generera totalmängden. Jag nämnde lösningen earlier8230 Allt jag behöver göra är att skapa en enkel formel som ser ut så här: Here8217s formeln igen: Intäktsintäkter i rapport Kom ihåg att rapporten Rapport i rapporten projekterar åtgärden upp till den totala rapporten totalt. Genom att använda den beräkningskontextoperatören i nämnaren i min division ser jag till att jag alltid kommer att dela upp med totalvärdet i denna formel. Resultaten What8217s Next Detta inlägg repade knappt ytan på beräknings kontextfrågan. Det gav några korta definitioner och ett enkelt exempel. Jag har planerat flera andra inlägg som kommer att dyka in i mycket större detalj om detta ofta förvirrande ämne. Först planerar jag att prata mer om In versus ForEach versus ForAll och hur de är olika. Nästa planerar jag att täcka inmatning mot utgångskontext och när varje ska användas. När jag skriver det här inlägget är ingen av dessa två mycket mer än en skiss för nu, så jag har inte uppskattat publiceringsdatum. Men de8217ll blir publicerade. Så småningom. 125 Svar till 8220Calculation Context Del I: Översikt8221 Tack för det här utmärkta inlägget ser jag verkligen fram emot framtida inlägg om detta ämne. Beräkningskontexten är ofta missförstådda och gissade vid, även efter år av erfarenhet av att använda dem. Förhoppningsvis kommer detta att öka förståelsen för alla webi och deski-användare. Hej Dave. Om du var en DJ I8217d säg älska showen. Varje gång jag behöver använda beräkningskontext måste jag gå tillbaka till första principerna och arbeta igenom exempel för att hjälpa min förståelse. Så mer djupgående inlägg kommer att vara bra. Hur som helst, i ditt exempel ovan har du ingen aggregatfunktion och inga parenteser. Mitt enkla sätt att komma ihåg syntax är att ingående kontekster ligger inom parenteserna, t. ex. summa (mått i sammanhang) och utgångskontexten ligger utanför parenteserna, t. ex. summa (mått) i sammanhanget. Med detta i åtanke är INRAPPORTEN i nämnaren tekniskt inmatnings - eller utgångssammanhanget Hi Dave, Tack för att du väljer Beräkningskontext som ämne för detta inlägg. Jag kan bara sluta själv att nämna att jag blev frågad skillnaden mellan för var och en för alla i min tidigare intervju. Jag svarade men kommer se hur mycket av det är rätt genom att läsa ditt nästa inlägg8230 Jag letar efter några saker på Integra-lösningar men kunde inte hitta dem, Quoram poppar upp. Jag förstår att Integra fusionerades med Quoram men var kan jag hitta materialen. Hej, Grant, tack för din kommentar. Sanningen är att du don8217t måste använda aggregatfunktioner för formeln om projektionsfunktionen är korrekt definierad. I det ovanstående fallet lämnade jag det för enkelhet. Inmatningskontext är alltid inom parentes, så att svara på din fråga är 8220In Report8221 utgångskontext. Jus, företaget Integra Solutions och den tillhörande webbplatsen finns inte längre. När jag gick för att få en länk till hämtningssidan på Quorum-webbplatsen verkar det som om de har redesignat webbplatsen sedan jag senast tittade. Jag sökte, och det finns fortfarande pdf-filer, men de verkar inte indexeras på en sida var som helst. Jag vet inte vad jag ska föreslå, förutom att försöka använda sin kontaktsida. Finns det ett specifikt objekt du letade efter om it8217s något jag skapade it8217s möjligt att jag kunde lägga upp det här på min blogg för referens. Hej Dave. Ja jag förstår projiceringen och det som jag fick på jag antar. Utan att det uttryckligen finns där vet jag aldrig huruvida SUM-funktionen (som definierad av din object8217s projektion) skulle omfatta inrapporteringen i ingångs - eller utgångssammanhanget jag så slutar jag alltid uttrycka aggregatfunktionen så att jag kan förstå om I8217m hänvisar till Input eller Output-kontexten. Ledsen att driva på. Jag vet i det här exemplet det inte heller här eller där, men det har någonting som stör mig och I8217ve fick aldrig svar på. Så från vad du säger, är din inkomst i rapport densamma som summa (intäkter) i rapporten. Kära hjärtanes. Se varför jag kämpar. Och I8217m försöker få mitt huvud runt ett fanfelproblem samtidigt Bra webbplats. Tack för att du delar dina hjärnor. Grantie, i en viss rad i ett block, är standardvärdena för inmatning och utgångskontext alltid 8220In Body8221. Om ett värde ligger på en sidfot av en paus är utgångssammanhanget baserat på pausens struktur. För att göra saker mer förvirrande när du gör en Sum () - projektion, gör ingången sällan en skillnad. Antag att du har detaljerade radvärden på 1, 2, 3, 4 och 5. Antag att 1, 2 och 3 är detaljerade värden för 8220A8221 och 4 och 5 tillhör B, så här: Om jag gör en paus på Dimensionsvärdet får jag det här: Om jag vill ha en rapport totalt, spelar det ingen roll om mitt inmatningskontext är dimensioneringsvärdet (1 2 3 4 5) eller pausvärdet (6 9) eftersom båda resultaten fortfarande är 15. Saker får mer intressant när medelvärden eller annan verksamhet används dock. Hej Dave, jag måste alltid kolla med anteckningarna när jag måste hantera Input och Output-kontext. Kan du berätta för skillnaden mellan Input och Output-kontexten. En är för ingång, och den andra är för utgång. I all allvar är that8217 ett ämne för nästa blogginlägg. It8217s lite för att täcka som en kommentar, så håll dig uppdaterad för more8230 Hej Dave, jag behöver använda beräkningskontext i min rapport. Jag behöver uppgifterna i en rapport från fyra olika universum, som ligger i olika kornhierarki. Det skulle vara bra om du kunde lägga upp mer information med exempel på In, för varje, för alla, i rapport, i block och i kroppsberäkningskontexten. Hej, Yogesh, jag har planer på att skriva mer om ForEach och ForAll och så vidare. Jag har ett inlägg i utkastsstatus nu som jag måste slutföra. Jag hoppas att du kan vara tålamod, eftersom saker ibland rör sig långsamt. Du är alltid bra med ditt inlägg och det hjälper mig mycket. Jag skulle gärna vilja se mer inlägg på beräkningskontext. En speciell fråga jag har är, kan vi använda dimensioner som inte finns i blocket men som finns tillgängliga i frågan för att ändra beräkningen av åtgärden med hjälp av ett längre beräkningskontext ytterligare om vi kan hur vi ska vara försiktiga när det finns flera frågor (dataproviders ). Hej, Mathew, jag har fler inlägg i 8220draft mode8221 om detta ämne. Jag hoppas att få några av dem färdiga snart. För att svara på din fråga måste varje dimension som deltar i Output-kontexten ligga på blocket. En dimension som deltar i Input-kontexten behöver inte vara närvarande. Hej, Dave. Tack för inlägget. I8217m tycker att det är mycket användbart. Jag har dock stött på ett problem, som jag tror kräver användningen av beräkningskontext som jag har försvunnit min hjärna för den senaste veckan eller så utan lycka till. Föreställ dig att vi ska sätta ner intäkter från kunder, men varje kund kan leva i flera stater. Universum är byggt med ett sammanhang som innehåller våra kunder och åtgärder, och ett andra sammanhang som knyter kunder till stater. När jag tar dem in i ett block, fungerar allt bra (tänk på att den första kolumnen är statlig, den andra är kunden och den tredje är intäkterna): AX 10 AY 5 AZ 12 BY 5 CZ 12 totalt: 27 (summan av de tre kunder) Nu, om jag tar bort kunden från blocket får jag: A 27 (vilket är korrekt) B 27 (vi vill att detta ska vara 5) C 27 (vi vill att detta ska vara 12) t: 27 På samma sätt, Om jag lägger pauser på staterna skulle jag få: AX 10 AY 5 AZ 12 totalt: 27 CZ 12 totalt: 27 I8217ve försökte alla kombinationer om ingångs - och utgångsberäkningskontext som jag kunde tänka på och alltid få ovanstående resultat. Några tankar BTW, om det gör skillnad, vi8217re på BOE XI r2 (förhoppningsvis flyttar till 3.1 senare i år). Hej, Darius, och välkommen. Vad du har beskrivit är vad jag kallar 8220balanserade data providers8221 eftersom du har dimensionsvärden på olika nivåer. Staten är på en högre nivå än kunden, och du använder kunden för att dra de två dataseten tillsammans. Jag tror att om du läser följande inlägg kommer du att se en exakt beskrivning av ditt problem tillsammans med en lösning. Nu för de dåliga nyheterna: Funktionen ForceMerge () existerar inte till XI 3.0. Om du jobbar i Web Intelligence, så är du inte lyckad tills du uppgraderar. Om du använder Desktop Intelligence kan du försöka använda MultiCube () - funktionen i en liknande lösning. Tack. Från det jag läste ser det ut precis som jag letar efter. Den enda haken är allt i mitt exempel kommer från en enda dataspridning (om än med flera sammanhang), men I8217ll ger det ett försök när vi flyttar till XI 3.0. I teorin tycker jag att det ska göra tricket. Lyckligtvis frågade mina kunder om det ännu, och jag förväntar mig inte att de försöker bygga en rapport med de uppgifter som skulle orsaka detta problem. I8217m försöker bara stanna ett steg före dem8230 Jag har data nedan Nu i min rapport vill jag ha mindre dimensioner och räkna med unika RiskIDs på Entity-nivån. som nedan. dvs jag vill förlänga funktionen Count () för att inkludera Enhet i ingångskontext. Region Country Count (RiskIDs) Asien Indien 5 Vänligen låt mig veta hur man skriver formeln för ovan. Tack, Poonam N. Hej, och tack för din fråga. Från det jag kan se behöver denna fråga inte kontext. Skapa en ny variabel som kombinerar Entity med Risk ID och räkna sedan resultatet. Vid sammanslagning av ett leverantörsnamn är endast ett värde duplicerat. exempel: leverantören innehåller hfc, uhc och aetna från tabell A. claim leverantör innehåller uhc aetna och kobra när sammanslagning fick jag hfc uhc aetna aetna cobra aetna upprepas två gånger i den sammanfogade dimensionen. kan du snälla hjälpa mig att lösa det. Hej, det här är verkligen en sammanhangsfråga. Som nämnts någon annanstans. den här bloggen isn8217t är avsedd att vara en källa till personligt stöd. Du kanske vill försöka BIR eller kontakta teknisk support med dina frågor om de inte är relaterade till ett inlägg här. Tack. Vi hittade problem med åldersberäkning på en borrad rapport XI R2 SP4. Den totala vi delade genom att alltid filtreras. XI 3-funktionen NOFILTER (objektborrning) fungerar i SP4 8211 denna 8216drill option8217 är okodad i SP4-hjälpen 8211 så tidigare hade vi avgjort för två datakällor, men det här är mycket bättre. Omräkningskontext används endast för aggregering Om inte vad som är funktioner kan vi använda pls ge tydlig definition för beräkningssammanhang Jag undervisade förra veckan Web Intelligence-kurser och bland de viktigaste sakerna som jag tycker är inputoutput-kontext och spårdata (och de nya formlerna) . Jag önskar att vi hade förmågan i Web Intelligence att utvärdera en formel i sina sammanhang (som vi kunde med gamla DesktopIntelligence). Jag uppskattar verkligen din stil för att förklara koncepten. Den här bloggen har verkligen hjälpt mig mycket. Cab cab du snälla slänga mer ljus på inmatnings - och utgående kontekster Tack amp Hälsningar, Girish Jawale Jag försöker skapa formel kontext, jag har tre åtgärder att komma med. mäta 1 8212 PY Totala spenderingsåtgärd 2 8212 Cy Totala spenderingsåtgärd 3 8212-CY Totala utgifter totalt (till slutet av föregående månad) Jag har varit ett ble för att skapa de första 2, mitt problem blir att den tredje skapas. Tack för hjälpen. Hej, Sunil, du har inte en kontextfråga i ditt scenario. Det verkar som om du behöver en beräkning som inkluderar allt utom den aktuella månaden. Jag skulle experimentera med kod som ser något ut så här: Summa (Spendera) - Summa (Spendera) Var (Månadens nuvarande månad) Det kommer att få dig en total summa och sedan 8220back out8221 beloppet för den aktuella månaden, vilket innebär att ett pågående år totalt till slutet av föregående månad. That8217 är bara en idé och inte den faktiska syntaxen, som jag är säker på att du inser. En fin, tydlig och kortfattad sammanfattning av kontextoperatörerna. Mina frågor. är med avseende på beräkningar med användning av detaljer av dimensionerna t. ex. qryDatadim userFiledim Datum Area Zone Zon GeographicId (detalj av staden) Webbplats 82128212821282128212821282128212821282128211 NumCalls DenCalls Två beräkningar krävs är Date and GeographicID. Beräkningen för datum beror dock på GeographicID eftersom två webbplatser delar ett gemensamt geografiskt ID. t. ex. goodCalls if (numCallsdenCalls) I geografiskID lt 2 sedan NumCalls Medan ovanstående exempel beräknas korrekt överför värdena inte rätt upp till Datumnivå. Återläggning av dimensioner8230 qryDatadim8211userFiledim Datum821282128211 ingen ingen821282128211Area Zone821282128211Zone none821282128211GeographicId (stadens detalj) Site821282128211Site 821282128212821282128212 NumCalls8212-none denCalls8212-none NumCalls DenCalls Jag har en specifik situation där du kanske kan styra mig. Jag har en webi rapport där jag har raster och avsnitt inställd på vissa kolumner. Som en del av beräkningen är det obligatoriskt att göra medelvärde på vissa kolumner och producera rapportens medelvärde efter avbrott, avsnitt och totalvärde. Nu när jag tillämpar en genomsnittlig funktion i sektionen paus kolumn och sektions kolumn visar sig medelvärdena att vara right8230..but när jag måste visa stor medelvärde av alla kolumnvärden utanför sektionen i ett annat block 8230. värdet summeras bara up8230.no genomsnittlig beräkning sker place8230as rekommenderas Jag försökte tillämpa kontextoperatörer I rapport, i avsnitt 82308230 men till ingen framgång 8230. kan du låta mig veta om det finns ett sätt att uppnå detta. Hej, Tack för ämnet och användbar information om sammanhanget, jag har ett enkelt krav som behöver beräkna den totala delen av avsnittet. säg att jag har en sektion på fördjupningen och inuti sektionen där wile underprodukträkning och den här underprodukten kommer att vara dynamisk baserat på de snabba värdena. när de är genererade jag behöver beräkna antalet produkt ut sidan sektionen, jag kan få cout inuti avsnittet, men jag kan inte få cout ouside sektionen, har du någon idea8217s i den här frågan. Darsh, kan du snälla försöka göra summan räkna istället för att använda den genomsnittliga funktionen Hi Dave. Jag tycker ofta om att stöta på din webbplats när jag går ihop med Googling för några BO-frågor. Planerar du att skriva din nästa blogg på förEach och förAll snart Dessa ämnen är som du påpekade ganska svårt att förklara och också bli bekanta med. Med vänliga hälsningar Ingrid Dave 8211 Vad kan jag säga8230 .. Tack hej Dave, Tack för att du skriver upp. I8217ve gick aldrig tomt handed efter att ha läst din blogg. Alltid få ett svar här :) Tack igen Återlevera verkar det få formulär som publicerades korrekt .. Hej Dave, jag har hierarki Division-gtMarket-gtCenter. Jag skapade avsnittet om marknadsdimension med försäljning som åtgärd. Jag ville se försäljningen på divisionsnivå inte för varje marknad trots att den delas upp av marknaden. Jag försökte använda inmatning och ouput-kontexten fungerar fortfarande inte. Jag försökte använda Sales ForEach Division Jag får flervärdesfel. Om jag använder Max (Sales in Division) får jag maximal försäljning från alla Divisions. Vilken hjälp som är vilken beräkningskontext eller syntax som ska användas skulle uppskattas. Kan du tacka i detalj om det problem som poonam har lagt upp 8220Comment av Poonam N 15 april 2010 kl 6:40 8220. Jag ville ha alla dimesioner i rapporten och vill att 5 ska visas i summan. Kan du tacka hur du gör det. Skapa en variabel som kombinerar Risk ID och Entity och räkna unika resultat. Du kommer att få Försäljning-1001 Försäljning-1001 Försäljning-1002 Marknadsföring-1001 Marknadsföring-1001 Marknadsföring-1003 Utbildning-1001 Utbildning-1001 När du räknar med de unika värdena kommer du att räkna detta: Försäljning-1001 Försäljning-1002 Marketing-1001 Marknadsföring -1003 Utbildning-1001 Det kommer att få dig 5. Hej Dave, Du har förklarat det tydligt. Vill du veta mer om BO. Eftersom jag är ny på det här verktyget kan du tacka mig några steg för att komma igång med BO. När du läser dina bloggar ger det alltid en uppfattning om BO. Tack så mycket Hej Dave. Ville bara utvidga diskussionen till rankning. I8217ve har framgångsrikt använt beräkningskontext och rankning för att visa de bästa x-kunderna, med de återstående kunderna grupperade i 8220Others8221. Men när jag lägger en paus på den här dimensionen, återställs rankningen inom pausen, vilket betyder att varje kund nu rankas som 1. Jag kan8217t se ett sätt att berätta för mina variabler att ignorera återställningen vid paus. Har du knäckt det här? Den här bloggen hjälpte mig mycket i att förstå de grundläggande begreppen i beräkningskontexten. Tack, Dave. Jag önskar så att du hade publicerat några fler bloggar om detta ämne som var i drafts8230 Tack för det här inlägget och bloggen i allmänhet. Det har verkligen hjälpt mig med några knepiga koncept som don8217t tycktes vara täckt av böcker (särskilt posten på obalanserade datortillhandahållare). Efter att ha läst det här verkade jag använda kontekster bra för de flesta saker men har slagit en tegelvägg när man använde räkningar, under vissa omständigheter. Speciellt med hjälp av CountAll på ett dimnesionobjekt. Jag skrev upp frågan på BIR: Om du har några synpunkter på den frågan skulle det vara bra men i allmänhet älskar I8217d att se del 2 i det här inlägget. Den andra delen av det här inlägget har publicerats men I8217m ser fram emot det. Väntar ivrigt på ditt nästa inlägg på detta ämne. Jag hoppas att du kommer att ta lite att skriva på In, ForALL, För varje kontext som snart väntar på nästa inlägg Hej Dave, läste jag dina bloggar mycket ofta. De är mycket informativa och lätta att förstå. The way you explain the complex things, really make our lives very easy. Eagerly waiting for your next posts on Calculation Contexts. I restared to read all your blog posts since wake up. I should complete, infact grasp all the BO things effectively. I8217ve recently published a few reports using the ForceMerge() function which works great in the column. The column I have this applied to has a filter on the first report and a different filter on the second report. The third report combines the two. The third report total is correct, but the first and second report column totals are not 8230 it displays the whole report total for the ForceMerge() field. What am I missing I tried: If(Provider Type Group 8220Physician8221) Then Sum(fmRTS) Else 0 but this still gives the whole report total, not just the total where 8216Physician8217. Thoughts Any help is appreciated. Your blogs are very helpful and making me understand the concepts well. This blog is also well written. I am eagerly waiting for your detailed blogs on for each and for all. Hi Dave, I8217m in desperate need of your expertise. This multivalue has me stumped. I have a report where I am calculating the amount of time that it takes to resolve a service request, in weeks. So I have a variable that calculates weeks. the example is for those that take 0-4 weeks. Variable name Count0-4 IfWeekslt5 Then Count(CompletedInstallTurnaround. SR Number) I then also have a variable that counts how many records were in that count. Variable name Total0-4 RunningSum(Count0-4) This gives me a correct total of how many service requests took between 0-4 weeks. I039m trying to display the variable Total0-4 on a second report and I get MULTIVALUE I have then tried to use the max function and the last function I039ve also tried adding quotin Reportquot to the variable above. I still get the error MULTIVALUE on each one of them. How to I get the total from the first query to display on the second query Hi, Karen, your issue is probably because you8217re referencing a dimension object in an 8220If8221 statement. If that dimension object 8211 Weeks in your case 8211 is not in the block, then the measures roll up (project) beyond the level of Weeks and therefore are no longer in the same calculation context. There are too many weeks, thus you get a MULTIVALUE error. You might try creating a couple of variables to address this. First, create a flag variable with a syntax something like this: If Weeks lt 5 Then 1 else 0 Then use this flag in the 8220Where8221 clause of another variable, like this: Count(. ) Where (Flag 1) That8217s not the exact code, but you might see where I8217m going. By using the Where clause you can reference something that isn8217t in the block, which sometimes allows you to work around a multiple value error. Dave, that worked perfect. I8217m so happy I found your site. I8217ve found so much helpful information. I had resorted to putting the calculations in the universe which is not what I wanted to do. I can pull those back out now and do it the proper way. Hi Dave, As an ex BOBJ employee and BOBJ trainer I do find your explanations very easy to understand 8211 and although a lot of what you have here i know, as you say 8211 there is always something Thank you for your sharing Hi sir Dave Rathbun can you please demonstrate how to create dynamic measures i want to calculate difference between revenue of any two year from available 3years with only 1 measure and display the difference in the other column. Thanks in advance for giving your precious time. Hi, this isn8217t really a calculation context issue, and I have seen you have posted the same question on BOB which is probably the best place. Tack. Hi sir That isn8217t me. i saw that post but did not work. please help. waiting for your reply. As I said, it8217s not a calculation context issue, and therefore isn8217t really appropriate to address in comments on this blog post. If you can provide additional details in the topic listed, what you have tried, how your situation is different, and what you ultimately need, I suspect you8217ll get better results. Tack. Hi Dave, I always find that your posts improve my knowledge and often my product and this post, about calculation contexts is one that I8217ve found most useful. However I have a continuing problem with contexts for median and other percentile functions. I am easily able to test the results by pushing the source out to excel, sorting and then finding the middle row so I know what I should see and can compare with what I get. When I use median function the results for each row in a block are correct but when I try to get the median for the whole block in a table footer the result has never been correct. What context should I use to fix my mistakes Thanks in advance. I have never experimented with the median function that much, and I don8217t think I8217ve ever tried to use it with a context operator. Normally the footer context is whatever the break (or breaks, if multiple) are. If I have a block with Resort, Year, and Revenue, and I break on Resort, then the footer context is In (Resort) as you probably know. Dave, you come highly recommended by members of the Bus Obj Boards. I desperately need your expertise. I need to create a report that is a top 10 ranking (which has been completed) but the report is too large to export to Excel or CSV. The crosstab report contains items on the left and individual store numbers across the top (each store number also belongs to a 8220group8221). The data is the number of cases each store has sold since the beginning of the year. My real problem is that I can get the report reduced down to an exportable (manageable) amount of data by using a filter that will limit the results for that tab to show only the results for a particular 8220group8221 of stores, but each time I use the filter, the order re-sorts based on the sales of that 8220group8221 of stores selected instead of using the grand total. I need to measure the items against the grand total because we are trying to show distribution voids. I can not get it to reflect the grand total, only the individual group total. Any help on this would be appreciated. Hey Dave , If I want to calculate the grand total of revenue for three years where there is section break in a year and break in a state how can I do it A grand total can always be generated using the context 8220In Report8221 in the formula. Glenn, you can use the NoFilter() function as part of the formula to get the grand total even after you have applied filters to the report. Awaiting for the sequel of 8220Calculation Context Part I: Overview8221 Hi Dave, I8217m triying to implement a margin of error and raise a flag if that margin is pass. I implemented this within Webi but the user will want to filter by flag ( Y N). I created a variable that will hold that flag but when I use it as a filter, it will only display one value Y, not N When the user selects that only value, Y, there8217s no data to display. I think Im missing something but cant figure what it is8230Any advise will be greatly appreciated. (Thanks) Can you post a few details about the data and the formulas you are using I suspect that what is happening is your numbers 8211 without context 8211 are being rolled up. The 8220Y8221 is then being calculated at the top 8220grand total8221 level, resulting in a single value. More details would help clarify your question. X amp Y are columns that sum up values. Those columns are in a table with the flag variable. Flag variable. If(Abs(x 8211 y) gt Abs(Margin of Error) Then 8220Y8221 Else 8220N8221 The above variable is working fine but when I set the Flag variable as a filter in the report. It would only show Y and when selected, no data is displayed. I hope this helped. Data exaple: Error Margin: 0.03 X Y F 1.1 1.2 N 1.3 1.9 Y Any thoughts Webi8217s filters cant use contexts even if you set them as dimension. Hi Dave, I have a report which will display top five projects and their revenue percentage. Percentage is of a project revenue is calculated as project revenueAll projects revs. Here i m not able get the All project revenue in each record to calculate percentage. Could you pls suggest. Sample data: project rev percentage 1 500 (5002000)10025 2 400 (4002000)10020 3 300 8230.. 4 200 82308230 5 100 82308230 Total of top five 1500 Total of all projects 2000 (i calculate using formula: sum(nofilter(projrev))) thanks in advance Satya You need an 8220In Report8221 somewhere to get the overall total. Also some times I have to play with the NoFilter() function and decide if it works better as Sum(NoFilter()) or NoFilter(Sum()) instead. Satya, You can use this formula 8220Measure(Sum(Measure) In Report)8221 Hi Dave, I would like to exclude a particular object in the context (file) and than take the sum with a different object as output (cons) and than sum again on file level. I8217ve tried every combination of ForAll and ForEach and even tried something with In, but it doesn8217t seem to work. I8217ve also considered using 2 different queries such that the cost is gathered on cons-level, but when using forcemerge() the cost of a consignment is only used for one file that the cons is on. I hope you understand my question. Below an overview of the data I have in my report and the results I would like to retrieve. Required summary overview: Could you please help me with this problem Or is this not possible I thought I followed your question, but then when I looked at your sample data I got confused again. How many data providers do you currently have Is your final output going to have 3 rows (as in your second example) or 5 (as in the first) Because based on the 3 rows, it seems like you can simply create a block with 8220file8221 and 8220Cons costs8221 and based on the 5 rows of raw data you showed, the cost should naturally roll up when you remove the 8220Cons8221 object. Or is this the final output you8217re looking for If what you8217re looking for is what you posted, I created your sample data in a spreadsheet, created a Webi report, and generated this output: My formula was this: Sum(Cost ForAll(File)) In (Cons) Hi Dave, Thanks for your quick response. I would like to solve my problem without using an extra data provider. Meaning that all information is available in one data provider. Currently, my raw data looks like: Cons file Cost 1 A 10 2 B 20 3 B 30 1 B 5 2 C 25 After creating a variable called 8220Cons cost8221 I can created the following table (same as raw data but including the new created variable. This variable calculates the total cost for each consignment. Cons file Cost Cons cost 1 A 10 15 2 B 20 45 3 B 30 30 1 B 5 15 2 C 25 45 Now, what I would like to do is create a block that provides me the below overview. This overview should sum all Cons Costs of each Cons on a particular file. For file B: Cost(cons 1)Cost(cons 2)cost(cons 3)15453090. file Cons costs A 15 B 90 C 45 What I get as output is the below block which is not what I need. For some reason I get the total cost if I remove the cons Object. file Cons costs A 90 B 90 C 90 I hope this clearifies my question. You get that because the 8220file8221 value is no longer available, which apparently in this case makes the 8220In File8221 act the same as 8220In Report8221 and you get the overall total. B asically it works this way: anything in the input context does not have to be in the block. Anything in the output context has to be in the block. You can8217t sum by 8220file8221 and use it to drive a calculation unless it8217s in the output block in some fashion. I also tried to create a break and fold the results, but the break total doesn8217t work because of the MULTIVALUE error that occurs. Maarten, i think your SQL should be as below to get the desired result. select B. file, sum(A. CONSCOST) from (select cons, sum(COST) as CONSCOST from TableA group by CONS ) A, TableA B where A. consB. cons group by B. file TableA has the data as below I am not sure whether we can achieve that at report level. Thanks a lot for this page 8211 I8217ve learnt a lot from it. There is something I8217m currently stuck on though and was hoping you might be able to give me a pointer: I have a report sectioned by a date dimension, but I need to have all the dates of the dimension available in each section. I8217ve tried nofilter(date) but this doesn8217t help and 8216in report8217 gives me a multivalue error. Is there a context operator that could help me with this please Hi, Rob, that doesn8217t sound like a context problem because you8217re missing dimension values rather than adjusting how measures work. There are a couple of other blog posts here that talk about making up data, perhaps one of those will help. I am currently using webi 4.0. I have two reports in one file. First one contains the overall sales of all regions and the second one is broken down by region. In the region report I need to calculate some expenses where i need to find the ratio by taking the region expenses divide by overall expenses, my measure give me UNAVAILABLE error.. This is the how my measure roughly look like : (ifExpenses1 Then Region Expenses earned profit) (ifExpenses1 Then overall Expenses earned profit) in report I used flag to avoid Multivalue error Appreciate your assistance. Hi Judy, to understand the problem clearly could you please provide a small data set and the desired result you wish to achieve Hi, I need some ideas to accomplish something. I am working on a table that needs to show the Top 10 Incidents by Configuration Item (not complicated), where I am stuck is in the column that needs to show the percentage, as I need it to show the percentage based on the total Incidents and not on the ones shown in the table: CI01 116 11.42 CI02 86 8.46 CI03 59 5.81 CI04 47 4.63 CI05 47 4.63 CI06 47 4.63 CI07 43 4.23 CI08 38 3.74 CI09 35 3.44 CI10 29 2.85 The total Incidents for this example is 1,016 and if I show the table with all data, all percentages are calculated properly. When I add a ranking or somehow filter the table, the percentages are calculated based on the information shown by the table, like this, which represents the percentage of the Top 10 only: CI01 116 21.21 CI02 86 15.72 CI03 59 10.79 CI04 47 8.59 CI05 47 8.59 CI06 47 8.59 CI07 43 7.86 CI08 38 6.95 CI09 35 6.40 CI10 29 5.30 The percentage is being calculated by this formula: CR - Ticket Count(Sum(CR - Ticket Count) In Report) CR 8211 Ticket Count is constant 822018243 sent by the database for each ticket and is defined as SUM measure in the Universe. Any ideas are appreciated. Tack så mycket. A rank or filter are two different ways that data can be reduced. If you want the overall total ignoring all filters then the NoFilter() function does that for you. A good initial guess might be: CR - Ticket CountNoFilter((Sum(CR - Ticket Count) In Report)) Dave Rathbun, you are a genius. I did not know that one of the 8220NoFilter()8221. I got exactly what I was looking for. Tack. Hi Dave, I need to see sum of all rows for one of my measure column even when a dynamic report level filter is applied in webi. i tried using noFilter() function but that is not working. You8217ll have to provide more details than 8220not working8221 in order to get any useful replies. Thanks a ton for the post. It really helped me accomplish a very detailed level report. I am hoping you could suggest a solution for one detail of my report. I have a Region - Location 8211 Status 8211 of applications table in my report. I have a Horizontal stacked Chart(x-axis Location, Y-axis of the count) by status. The problem is the is being calculated for the entire report or any value given through input control whereas I want a for each Location by Status. Example: location Bay Area I want my to be count for each statuscount of Bay Area. Whereas I get to be Count of each Status for Bay Area for the entire report or any filter I select which changes constantly. Is there a way I missed where the calculation context can be applied to the Charts Thanks much Avanthi Just waiting for your detailed post on imput vs output context. Could you please post it as early as possible. Please post the part II for calculation context, waiting eagerly to see it from you. As always, you seem to explain things where I finally have the 8220ah ha8221 moment I8217ve been missing for a very long time. Thanks Once again this one page has helped me get past a problem point. I kept trying to use ForEach and ForAll and what I need was IN Delivered 100 I am working on a report where I need to use calculation contexts8230I have the following dimensions. Users, Dates and Comments. And my table looks like this: U1 D1 C1 U2 D2 C2 U3 D3 C3 U3 D3 C4 U4 D4 C5 U4 D4 C6 U4 D4 C7 U4 D4 C8 But the Comments with the same date and username are actually the same comment8230and needs to be counted for only once. I used calculation contexts using Count(CommentIn(UserDate)). Its not working and its is giving me the following results8230 U1 D1 1 U2 D2 1 U3 D3 0 U4 D4 0 Please help ASAP Is a section considered to be a filter I have report with sections and I need to calculate a rolling sum for the previous 3 months, but I need to filter the resulting table so that it shows months 4-6 but calculates the running sum using months 1-3. Because of the version that I am running I need to calculate the sum as hours previous(hours) previous(previous(hours)). I have added the NoFilter() function around the sum calculation. When I look at the first section, the sum is correct, but when I look at the next section, the sum is being calculated using the hours figure from the first section also. So I can only assume the NoFilter() function is removing the section in the calculation. Is there any way of using NoFilter() but resetting the calculation for each section Your post is really helpful..Inspired by all your work..I myself wrote one here: gauravkalra. wordpress Let me know how does that look. I have included very less detail in my first post..and tried to keep it interesting too:). I hope to follow up with more of them. Glad to have helped. Yes, a section is definitely a filter. But all is not lost. When I have needed to do this in the past, I have done something along these lines. Assume that our section is on the Resort object, and there are three years of data within each section. I want a running total of 3 years, but only where the resort is the same. I might build three objects. The first is called 8220Previous Revenue8221 and it has this formula: If Previous(Resort) Resort Then Previous(Revenue) else 0 The next is called Previous Previous Revnue: If Previous(Previous(Resort)) Resort Then Previous(Previous(Revenue)) else 0 Finally the running 3 years of revenue: Revenue Previous Revenue Previous Previous Revenue The total will then compare the current Resort value to the previous two rows, and only include the revenue when the resort values are the same. At the same time, you could use the RunningSum() function which already has a reset function built in. So what you really have is this: U1 D1 C1 U1 D2 C2 U3 D3 C3 U3 D3 C3 (this should be C3, not C4, as it8217s the same comment) U4 D4 C4 U4 D4 C4 U4 D4 C4 U4 D4 C4 (the last four are the same) What is the desired output from this Hi Dave, I keep reading your blog to find a solution for a data calculationanalysis problem. I have a measure called result value for A4,3,2,lt2,lt2 and for B4,3,lt2,lt2,lt2. The system proveds a measure called numeric value for A4,3,2,2,2 and for B4,3,2,2,2 by removing quotltquot sign. The system also give a measure calledcalculated value for A4,3,2,1,1 and B4,3,1,1,1 by using half the value after quotltquot. I need to use a rule for my calculation. The rule is: if total count of quotltquot is less than the total count of data number, use half of the value after quotltquot. if total quotltquot is more or equal to total count of data, put the data with quotltquot to 0. I create a measure calculated valuenewin tab quotreport 1quot which gives A4,3,2,1,1 and B4,3,0,0,0. When I calculate average and percentile for calculated value and calculated valuenewfor A and B, there is no problem. But when I create another tab quotreport2quot to summarise the average and percentile, there is no problem for the average and percentile for calculated value but gives multivalue for the calculated valuenew. I try everything and not working. Snälla hjälp. Regards, Shaohua Hello, I8217m having the next problem and I want to see if you can give me some advice about it, let me explain. I have two data providers, this because the data comes from distinct databases. TABLE1 TABLE2 Date id detail Detail Cost 29413 A A1 A1 5 29413 A A2 A2 1 29413 A A3 A3 3 29413 B B1 B1 4 29413 B B2 B2 2 29413 C C1 C1 7 29413 C C2 C2 4 29413 C C3 C3 3 The report I need to launch must look like this: REPORT Date id Cost 29413 A 9 29413 B 6 29413 C 14 But what I get is something like this one: REPORT Date id Cost 29413 A 29 29413 B 29 29413 C 29 I tried to use the next combinations: Sum(cost) ForEach(Date, Id) RunningSum(costRow) RunningSum(costDate, Id) RunningSum(cost) ForEach(Date, Id) Can you help me with this calculation Hi Dave, When we use Foreach in aggregation functions with Where clause then do we need to follow specific order for specifying Foreach clause PLease see below example: My Formula is Average( Session Average Where(KP1822118243 And(Session Status8221C8221) And(Year822120138243) ) ForEach(Course CodeSession Number) ) This above formula gives right rsults but if i specify Foreach clause before 8220where8221 clause then it gives wrong result. Average( Session Average ForEach(Course CodeSession Number) Where(Kp1822118243 And(Session Status8221C8221) And(Year822120138243) ) ) PLease help me to understand the difference. Thank you, Mani Your posts are so informative and I8217m a big fan. I8217m sure this is simple and I8217m missing something, but I8217ve tried every variation of calculation context to no avail. I have four columns (shown in 8216table8217 below). I want the percentages to calculate correctly as shown in 8220COLUMN48243, but for some reason, they will not calculate as needed. So basically, I want to determine how many times a particular car feature is being used in unique models within the subset of unique Makes in the table. I then want to rank the Top 3 Car Features based on the USAGE RATIO column. It seems simple enough in theory, but I8217ve literally spent hours on this and cannot figure it out. Please let me know what I8217m missing. I would TRULY appreciate it. For the USAGE RATIO column, I8217ve used the following calculation contexts (in every variation): COLUMN3COLUMN2 Foreach(MAKEMODEL)in Block COLUMN3COLUMN2 In(MAKEMODEL) COLUMN3COLUMN2 In(CAR FEATUREMAKEMODEL) COLUMN1 COLUMN2 COLUMN3 COLUMN4 CAR FEATURE MAKE (Unique) CAR FEATURES IN UNIQUE MODELS USAGE RATIO (Column3Column2) Navigation System 50 15 30 Rear backup Camera 15 6 40 Heated Seats 30 12 40 Moon Roof 45 30 67 Top Air Bags 20 10 50 I posted a calculation context dilemma earlier, but it hasn8217t shown up yet on the site (hope it went through Please let me know if you did not receive it.) I wanted to provide a cleaner screenshot of the table in question, but can8217t figure out how to attach one to this forum. Basically, I8217m just trying to get Column 4 (USAGE RATIO). It8217s so simple on paper, in Excel, but for some reason, not in BO due to, I believe, calculation contexts, but none work for me. For some background, if you look at the data hierarchically, 8216Make8217 is at the top level, Unique 8216Model8217 is a subset of Make, and 8216Car Feature8217, the most detailed level, is offered in some 8216Models8217 by the associated 8216Makes8217. I want to show how many times a Car Feature is used in the unique Models of a given Make (which I have), and then divide that number of Models by the number of Makes for each Car Feature (which I can8217t figure out how to do and render correct results). I literally have no other folks to consult who have any BO knowledge, and BOB has produced no working suggestions so far. Hoping you can help8230 Thanks. say if I have a measure object in my report and I create a variable out of it(with no context defined) Example categorizing the revenue measure(1-100 million,100-200 million) . what will be the default context on that measure would it consider all the dimensions within the report while creating the variable The default context is based on the dimensions that are included in the block (or section) containing the new variable. For example, if the measure is in a stand-alone cell the output context would be 8220In Report.8221 If the measure is within a block, then the dimensions in the block determine the output context. If you include the specific context 8220In Report8221 within the formula, and place that measure inside of a block, then the specified context will override the dimension structure and you8217ll get the overall report total instead. Thanks, Dave, for the quick response. But the problem for me is, I have to create a section on the new variable. Just to let u know, when I used only rev in the formula 8216rev 1mill8217 then 82161-100mill8217..same Id is appearing in different categories(investigating this i found that the id has two rows in the table(database) because of a column(which is not available in my report) which has different values). So for the formula I used something like this 8216rev in (id)1mill8217 then 82161-100mill82178230thus defining the context for the measure limiting it to only the id. I was able to set up the section on this variable but ran into issues when trying to create an input control on this variable. I understand this blog is not intended for personnel issues8230please ignore this if am wasting your time. Really appreciate your contribution to Business Intelligence world..especially for starters like me. You generally cannot use a measure (or a variable derived from a measure) as a section. The reason for that is the measure scope (or context) is defined by the section, not the other way around. When I have had to create a break down by range (10-19, 20-29, 30-39 and so on for ages, for example) then I have created that as a dimension object in my universe instead of trying to do it on the report. I am new to BOB webi reporting and have started at a new company where the universe is set up differently than I have worked with before, we are trying to create a simple TY vs. LY rolling 12 month report (month to date plus last 11 months compared with same time LY) I am able to get the rolling using (year100) month Nbr for each block. (block1 has LY data and block2 has TY data) the issue I am having is creating a variable that can calculate data from each block. The report is displaying Month, week of month, Returns, Sales and RA Sales for each 12 month block. Last Year (Block1) This Year (Block2) Month Week RRA LY Sales LY Month Week RRA TY Sales TY Aug 1 50 6,000 Aug 1 20 7,000 What I am wanting to do is add a 3rd block or incorporate the totals into the 2nd block that calculates RRA TY RRA LY (created variable RRA TY-LY Change) and another calculation that shows the difference (RRA TY-LY ChangeRRA LY) When I try and add these to the report I get a single value duplicated in each row or a multivalue error. Any suggestions Hope you can help a complete newbie. I8217m working in Webi Intelligence (BOXI XI R2) with no access universe design. I have created a report measure variable in web intelligence which returns 1 if a record is current and 0 if not. I have a table on the report with a section break on case manager. If I do a sum on this measure in the table footer it returns the correct value for that section. However, I8217ve been trying to do a summary table in a seperate block and when I try exactly the same formula in that, i get the multivalue error. Any ideas Marcus, the problem is probably related to the fact that your 01 indicator is only valid at the row level. Once you try to project it to a higher level you get a MULTIVALUE error because there are multiple values (two different states, in this case) to pick from. What you might try instead is to use your current indicator as part of a 8220Where8221 clause on a sum, as the values used there do not have to appear in the block. Something like: sum(Measure) where (Current Flag 1) Do you have separate objects in the universe for this year (TY) and last year (LY) or are you breaking them apart on the report I have a problem in calculating the time taken for a particular status alone involved in a service request. multivalue error. One service request will have multiple no of status such as ( pending, work in progress. closed etc).Now i want to calculate the time taken for the status 8221 pending8221 which should in the business days calculation. Request Status Start Time Stop Time Total Time Taken 101 draft 1-Jul-13 5-Jul-13 4 101 review 6-Jul-13 7-Jul-13 1 101 WIP 7-Jul-13 8-Jul-13 1 101 Pending 8-Jul-13 9-Jul-13 1 101 Pending 10-Jul-13 11-Jul-13 1 Expected output Request No Total Time Taken(Pending) 101 2 Hi, Can you provide me Calculation Context Part II Hi Dave thanks for the extrordinary articles always8230. 4 years had past we are eagerly waiting for the later chapters Me too When am I going to get around to writing them, does anybody know In all seriousness, I have dusted off my draft for part two of this article and hopefully will have it ready to post without too much delay. I love your blogs and am so glad they come up frequently when I am searching for something. I8217m a little stumped here8230 I have a situation where I am pulling in a couple of dimensions (customer and fiscal periods) and the sales associated. What I want to do is show the sales for each customer for ONLY the latest fiscal period. So for example I am showing: Cust 1 8212 201401 8212 1,000 Cust 1 8212 201402 8212 2,000 Cust 1 8212 201403 8212 1,500 Cust 2 8212 201401 8212 1,700 Cust 2 8212 201402 8212 2,000 Cust 2 8212 201403 8212 2,500 What I WANT to show is: Cust 1 8212 201403 8212 1,500 Cust 2 8212 201403 8212 2,500 I8217ve gotten it pretty close, but I can8217t seem to get it just right. Is there any way to get a measure for the max (dimension) If there is, I can8217t seem to find it anywhere or guess at what the syntax might be. So I created a variable to give me the max fiscal period and since they are chosen via prompt, the varialbe is Max(Main Query. Fiscal Period) In Report. I called it MaxUserResponse. Then I came up with this formula: (Sales ForEach (MaxUserResponse)) The result I am getting is the total of Sales across the fiscal periods, which makes sense, since that is what ForEach does. But I tried (Sales In(MaxUserResponse)) also. I got the total for all customers for all fiscal periods. when I tried (Sales In(CustomerMaxUserResponse)) I got the total across all fiscal periods per customer. What am I missing I know I am close8230 Please help Thank you I think I figured it out. I just added a where clause to my formula. So now it looks like: (Sales In (Main Query. Customer Name)) Where (Main Query. Fiscal Period MaxUserResponse) Thanks for reading8230 Tietje excellent post8230 Were you able to publish rest of the context operators as per suggested by you8230 I am sure reading your posts will surely help clarify lods of my doubts. Moreover do you have a link or website where in i can access other posts of yours to get better insight of BO Hi, I need to implement a similar solution. I need to split the data into three category. based on the percent to total value, the top 70 into catagory 1. next 20 to category 2, last 10 to category 3. Any idea how i can do that. Ver Useful Link, It saved my day. Thanks Dave. I have a requirement to display an average number of beds in a hospital, but each hospital has a validity start and end date. I need to display the number of beds per hospital at a summary level, which is an average number for each hospital irrespective of how many entries there are for validity dates per hospital. Detail level data: Hospital - Validity start - Validity End - No of Beds 8212821282128212821282128212821282128212821282128212821282128212821282128212821282128212821282128211 ABC - 01012000 - 31012000 - 10 ABC - 01022000 - 28022000 - 20 DEF - 01012000 - 31012000 - 20 GHI - 01012000 - 31012000 - 30 GHI - 01022000 - 28022000 - 30 I need the above data summarised as follows: Hospital - Avg. No of Beds per hospital 82128212821282128212821282128212821282128212821282128212821282128212 ABC - 15 DEF - 20 GHI - 30 I have tried to average the measure ForAll 8220Validity Start8221, in an effort to exclude the date dimension from the calculation. I have also tried to average the measure 8220In Hospital8221 in an effort to only include Hospital in the calculation context. In both cases, I get the following output, where it adds up the measure for every entry of date, per hospital: Hospital - Avg. No of Beds per hospital 82128212821282128212821282128212821282128212821282128212821282128212 ABC - 30 DEF - 20 GHI - 60 Can you please help I have a weird situation. I have Account nos and balance coming from one query. The BO report seems to neglecting the negative balance. So when I sum up the balance only positive values are considered. That is to say Sum(Balance) gives the same result as Sum(Balance) Where (Balancegt0) and Sum(Balance) Where (Balancelt0) returns null. But there is negative balance. If I pull account no and balance into a separate report and apply a report filter for Balancelt0 then I can see the negative balances against the accounts. But if I remove the accounts then it displays blank cell for balance. Any idea what is going on. I used the example from this link bi. srivatsakr201108converting-rows-into-single-cell-comma. html to get multiple text values corresponding to an id into one cell, but as I need to do this for two type of multiple values, and my main query has already too much information, I did everything exactly as in the example in my main query and worked beautifully, but for the second one I am attempting to create it in a second query (as if I include this one also in the main query it takes forever), I tested in a second report and it worked fine, but then I tried to include it in the main report and I get multivalue, I merged the main ids, I made the variables as detail variables, I created an indicator variable (Boolean) for the comparison to the maximum value and it still doesn8217t work. In the second query and report I have something like this ID 8211 type of contact 123 8211 regular mail 123 8211 email 123 8211 phone 234 8211 email when I do the link example in a second report I8217m able to get it to look like this: ID 8211 Type of contact 123 8211 mail, email, phone 234 8211 email but when I try to move it to the main report it looks like this: ID 8211 Type of contact 123 8211 multivalue 234 8211 email my variables look like this: This one I also tried it as a Boolean and it still didn8217t work. Max Type ContactMax(Type of Contact) In (Query2.ID) A detail variable link to the main id of Query1 ID Type of Contact Type of Contact A detail variable link to the main id of Query1 Concat Type Contact If IsNull(Previous(Self(ID)))Then ID Type of Contact Else (ID Type of Contact8221, 8220Previous(Self(ID))) A measure variable: All Type of Contact Concat Type Contact Where (ID Type of Contact Max Type Contact) What am I missing how can I properly link it to the main report and get it to work Thanks a lot in advance, Hi Dave, when are you going to write about context in much more details. awaiting your post. please make it fast. Was wondering if you could help me calculate the percentages (G) of inlist values (VX) and (YX) within the same dimension(V, X,Y) on a crosstabs. V X Y G F A 6 100 25 B 12 200 50 B 18 300 75 C 24 400 100 D 30 500 125 E 36 600 150 I have a requirement in a Webi Report as below. I have everything except the YTD Planned cost. So now I need to calculate the YTD Planned cost based on the Planned cost, Portfolio, Project Name, Month and Frequency. Can some body help me how to achieve this in BO Webi or through SQL query is also fine. Hi Dave, I became a big fan of you. But I am not able to find the next blogs on input and output contexts as promised by you in this blog. Is it that you have not published those yet or I am not finding the proper link Eagerly waiting for your posts. Regards, Arup I am having a lot of trouble getting a simple query to change to what i want it to 8211 I believe i am inputting the formula correctly as i have not have problems before using something like this:. query 1 (Product Store Stock) Query 2 (Store) Distinct list of store8217s set by myself in a different universe. Merge: query1.store query2.store Source dimension: Query2.store Currently query 1 will give me a total stock figure by store product level. I require the store8217s from query 2 to be the one i sum up against so i8217ve tried: Sum(stock. Total Branch Stock Unit ForEach (Query 2.STORE)) This still gives me the stock figure from query 1 (it should be lower as i have tested this on another tab to see what the output is). I8217ve tried many variations of the above formula but all seem to get me the sum of product from query 1 when infact i need it to sum against query 2 store. Please advise, help would be much appreciated. Lämna ett svar
No comments:
Post a Comment