Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
khizerk
Frequent Visitor

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 1
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.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.