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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Lindax12
New Member

How to add a row to an existing table?

Hello,

I've got an excel export with the following data:

1.png

 

In this example: a working student is calculated with 0,5 FTE per month for every full month. But if the leaving date is not the last day of the month this month is not calculated at all.

My idea was to filter all leaving dates that are not the last day of month but I don’t know how to go on afterwards. In the example above I need to insert a new row for June. Is there a way to execute this step automatically? Thanks for your help in advance!!

2.png

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @Lindax12 

Enter the "June" data in excel or in Power BI (by entering data)

Then append queries

Capture17.JPGCapture18.JPG

 
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
JosefPrakljacic
Solution Sage
Solution Sage

Hello Lindax,

 

I joined your table with a DateTable by the [LeavingDate] Column that I took only the first row and was able to reproduce your expected result. Here is the example file

 

and here ist the DaxTable Code

NewCalcTable = 
UNION (
    'Ma-Table',
    TOPN (
        1,
        SELECTCOLUMNS (
            NATURALINNERJOIN ( 'Ma-Table', Kalendar ),
            "Month", [MonatNameLang],
            "Last Name", [Last Name],
            "First Name", [First Name],
            "Joining Date", [Joining Date],
            "Leaving Date", [Date]
        )
    )
)

If this post was helpful may I ask you to mark it as solution and give it some kudos?

Have a nice day!

BR,
Josef

v-juanli-msft
Community Support
Community Support

Hi @Lindax12 

Enter the "June" data in excel or in Power BI (by entering data)

Then append queries

Capture17.JPGCapture18.JPG

 
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-juanli-msft
Community Support
Community Support

Hi @Lindax12 

I'm not clear about your requirement.

 

"But if the leaving date is not the last day of the month this month is not calculated at all"

This means:

If month is June, Leaving date is 2019/6/20, then this record should be considered as "not calculated", right?

 

"In the example above I need to insert a new row for June. "

Do you want to insert a row in the exsting Power BI data model?

 

"My idea was to filter all leaving dates that are not the last day of month but I don’t know how to go on afterwards"

You could give a sample and expected result.

 

Best Regards
Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello Maggie,

 

right. I need the FTE's for every single month but in this case the row for June is missing.

Is it even possible to add a row in Power BI based on a calculation?

 

Thank you & best regards 

Linda

JosefPrakljacic
Solution Sage
Solution Sage

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.