Forum Discussion

CetinT's avatar
CetinT
Frequent Visitor
3 years ago
Solved

Temp Table

Hi,

 

I want to crate a temp table for my calculation. You can find smaple data below. When I filter "MONTH" I want to see all "ITEM" names but I want to see only total of buyed items "QTY" and "AMOUNT" in that month. I already tried CALCULATEDTABLE but I could't make it? Could you help me?

 

SAMPLE DATA

 

MONTHITEM NAMEQTYAMOUNT
JanITEM110100
JanITEM111111
JanITEM21155
JanITEM3530
JanITEM4648
JanITEM41081
JanITEM61199
JanITEM72060
FebITEM1555
FebITEM240220
FebITEM31279,2
FebITEM420176
FebITEM420180
FebITEM525250
FebITEM71136,3
MarITEM110115
MarITEM2424
MarITEM3749
MarITEM31071
MarITEM4654
MarITEM5333
MarITEM6110

 

What I want to see? (forexample when I filter "Jan")

 

ITEM NAMETOT. QTYTOT. AMOUNT
ITEM121211
ITEM21155
ITEM3530
ITEM416129
ITEM500
ITEM61199
ITEM72060

 

Thanks.

  • Hi CetinT ,

     

    See if the attached example will help. Bare in mind that you will need to change the month in the temp table as this is calculated in memory and not on the fly. I've created a table called summarized using and then another called summarized product. I've used lookupvalue so that you get the null values you need also.

     

    HTH

     

    Did I help you today? Please accept my solution and hit the Kudos button.

6 Replies

  • davehus's avatar
    davehus
    Memorable Member

    Hi CetinT ,

     

    See if the attached example will help. Bare in mind that you will need to change the month in the temp table as this is calculated in memory and not on the fly. I've created a table called summarized using and then another called summarized product. I've used lookupvalue so that you get the null values you need also.

     

    HTH

     

    Did I help you today? Please accept my solution and hit the Kudos button.

    • CetinT's avatar
      CetinT
      Frequent Visitor

      Hi davehus,

      Thank you for your message. But I don't want show tables in to report. Actually I want to calculate inflation rate between two selected months. That's why I want to create two different table and make calculation between to temp tables.

       

      Regards