Forum Discussion

khizerk's avatar
khizerk
Frequent Visitor
4 years ago

Insert rows based on slicer value in calculated table

Hi,

 

I have created the following calculated table. Some sample data is below:

AccountCodeInvestmentCodeTransactionDateEndValLCYOpenValLCYTWR Open Bal LCYTWR End Bal LCYCashflowsPeriod TWR

35R5F5BXNYS:SYK26/03/2020 12:00:00 AM  0254391.35254391.351
35R5F5BXNYS:SYK29/04/2022 12:00:00 AM386016396880396880386016-945.20.975008062890546
35R5F5BXNYS:SYK31/01/2022 12:00:00 AM396880 254391.35396880-945.21.56383147461578
35R5F5BXNYS:SYK29/10/2021 12:00:00 AM  254391.35254391.35-856.81.00336803904693
35R5F5BXNYS:SYK30/07/2021 12:00:00 AM  254391.35254391.35-856.81.00336803904693
35R5F5BXNYS:SYK30/04/2021 12:00:00 AM  254391.35254391.35-856.81.00336803904693
35R5F5BXNYS:SYK29/01/2021 12:00:00 AM  254391.35254391.35-856.81.00336803904693
35R5F5BXNYS:SYK30/10/2020 12:00:00 AM  254391.35254391.35-7821.00307400389203
35R5F5BXNYS:SYK31/07/2020 12:00:00 AM  254391.35254391.35-7821.00307400389203
35R5F5BXNYS:SYK30/04/2020 12:00:00 AM  254391.35254391.35-7821.00307400389203

 

I would like to add rows for each distinct InvestmentCode in the parent table (Txns) with the transactiondate set to the date selected in a slicer. 

 

For example, if the user selected 31/07/2020 as the date on the slicer, no row would need to be added for InvestmentCode XNYS:SYK since it is already there, but would need to be added InvestmentCode ARCA:BRKB since the row is not there for that date. Wondering how to achieve this?

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi khizerk ,

     Why did you add that row?What kind of results do you want? Does InvestmentCode ARCA:BRKB appear in the table? Could you please provide a screenshot with your desired output?

     

    How to Get Your Question Answered Quickly  

     

    Best Regards
    Community Support Team _ Polly

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.