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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
dorsey
Regular Visitor

create column dynamically from other table

Hello everyone,

 

First sorry for my bad english.

I'm carry on this powerful software and I've a new question. 

 

To explain my problème, I have 2 tables

the first one is like this :

NAMESURNAME
JohnDoe
John Maclane
MaryPoppins

 

The second one have on the first colunn liste of date create by calendar function et other column will be creatte dynamically with the name of the first table like this : 

dateDoeMaclanepoppinsetc...etc...
24/06/2021..............

 

I have see we can create row dynamically but I don't know (Or don't see) if it's possible on this way.

 

Thank you for your help

regards

8 REPLIES 8
dorsey
Regular Visitor

Yes of course.

 

This my first table : 

2021-06-28_11-52-50.png

On the second one, on all day find who is missing (something like that) :

DATE||NAME||SURNAME
01/01/2021JohnRambo
01/01/2021John otherone
.........
02/08/2021doegregoire
02/08/2021doesbérengère
02/08/2021mclanegregory
02/08/2021poppinssheryl
03/08/2021......

Hi  @dorsey ,

 

So you wanna find the missing people from your first table(you provided in your last reply) and below table?

vkellymsft_0-1624958772510.png

Then get a final table something like below:

vkellymsft_1-1624958807052.png

Did I understand correctly?If possible,could you pls share a sample .pbix file for test?

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

Yes that right.

 

The file is available here : https://altissimalearning.net/Holiday_test.pbix

 

thank you

 

amitchandak
Super User
Super User

@dorsey , it is better to unpivot the second table in power query and get first name. Then you can create a common first name column

https://radacad.com/pivot-and-unpivot-with-power-bi

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hey ! 

 

Thank you for your answer, it's working perfectly and I think it will be very usefull.

But finaly, my problème is unsolved, my fault of course because it's a logical problem.

 

I need to find if my user have check this day or not, and I think finaly I need to combinate two table.

the first one don't change but the seconde one need to create the row dynamicaly.

 

I explain : 

the first one is always  :

NAMESURNAME
JohnDoe
John Maclane
MaryPoppins

 

but the second one need reppeat the date any time there is user on the first table : 

DATE||NAME||SURNAME
01/01/2021JohnDoe
01/01/2021John Maclane
01/01/2021MaryPoppins
02/01/2021JohnDoe
02/01/2021John Maclane
03/01/2021JohnDoe
03/01/2021......

Hi @dorsey,

 

For rows 2021/2/1,why there are only 2 rows?Shouldnt there be 3 rows,which is same as 2021/1/1?

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

Hi,

Thank you for reply.

Not really because it's a table for the holiday who user have take. For exemple the 2021/1/1, three persons have take the day but the day after only two

 

regards.

Hi  @dorsey ,

 

Then how to check how many people take the day?Could you show more sample data with expected output to make the logic clear?

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.