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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
uffee
Frequent Visitor

Insert rows based on values/calculations from another row

I'm pretty new to Power BI/DAX world and more familiar with Excel/SQL. I've been trying to solve the following problem for a quite while now. Here is the case:

 

I get the Invoice table with accounts, next invoice date, monthly billing from CRM. I only get the "current data" from the attached invoice-table with only single value for "next invoice date". However I'm willing to calculate the future invoicing based on the monthly billing frequency which can variate. In Excel I can do this just by "Edate" function using the attributes next invoice date and billing frequency and fill it down to get the "predicted data" from this invoice-table.

 

image.png

So my question is, is it possible to add rows based on values/calculations from another row in Power BI? Ideal situation would be that I could predict the billing until the end of this year. I know with DAX I can filter, add columns/tables, but I believe not rows? Or could inserting rows be already done in query editor?

2 REPLIES 2
Greg_Deckler
Super User
Super User

You can use CALCULATETABLE to essentially calculate a new table from existing tables.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

I was hoping to get the calculated values also on the same table to use them as values on the same column chart. But only way to add rows is to create a new table?

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.