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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
dancarr22
Helper V
Helper V

Possible to create a dynamic table and see the results?

Hello,

 

I am trying to create a financial calculation (XIRR) in PowerBI.  To do so, I must first UNION together several calculated fields and other table results.  The issue I am encountering is I can't see the results of the calculated, dynamic table before passing it into the XIRR calc.  And the XIRR calc is not returning correct values so I need to see the dynamic table results first.  How can I see the results of 'transTableFiltered' so I can see what the results are being passed into the XIRR calc?  Thanks Dan

 

VAR transTable =
UNION(
--Get the beginning MV
 SELECTCOLUMNS(BEGINDATE_TABLE,"TransactionDate",BeginDate, "Amount", [_XIRR_Leveraged_BeginAdjustedMarketValue]),


--Get any transactions during the period
SELECTCOLUMNS(IRR_TABLE,"TransactionDate", XIRR_Lookup[TransactionDate],"Amount", XIRR_Lookup[Amount_WithMultiplier]),

--Get the ending MV
 SELECTCOLUMNS(ENDDATE_TABLE,"TransactionDate",EndDate, "Amount", [_XIRR_Leveraged_EndAdjustedMarketValue])

)


VAR transTableFiltered = FILTER(transTable, ISBLANK([Amount])=FALSE() && ISBLANK([TransactionDate])=FALSE())

 

 

 
1 ACCEPTED SOLUTION
TomMartens
Super User
Super User

Hey @dancarr22 ,

 

I use the DAX function TOJSON a lot to inspect the content of a virtual table when the measure is more complex. This article describes how TOJSON works: TOJSON – DAX Guide

 

Hopefully, this helps to tackle this challenge.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

What happens when you click on New Table and put the formula there?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks @Ashish_Mathur - I tried that but it is not 'dynamic' and does not update based on constantly changing parameters which is what is needed.

TomMartens
Super User
Super User

Hey @dancarr22 ,

 

I use the DAX function TOJSON a lot to inspect the content of a virtual table when the measure is more complex. This article describes how TOJSON works: TOJSON – DAX Guide

 

Hopefully, this helps to tackle this challenge.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Thanks @TomMartens - this helps!  I will review the JSON results and debug from there.  Appreciate your help with this.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.