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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
v-rongtiep-msft
Community Support
Community Support

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.