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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Krishna_Newuser
Helper III
Helper III

Copy Calender Table to Another Table

Hi,

I have calender Table which i need to copy the dates to Another table(Unique Value).

Calender Table:

 

TxnDt
17-Mar
18-Mar
19-Mar
20-Mar
21-Mar
22-Mar
23-Mar

 

Table 2:

 

StoreNameStore Num
Mayflower Basildon SF11
Crownhill Plymouth SF112
Leigh SF113

 

 

Expected Result:

 

StoreNameStore NumTxnDt
Mayflower Basildon SF1117-Mar
Mayflower Basildon SF1118-Mar
Mayflower Basildon SF1119-Mar
Mayflower Basildon SF1120-Mar
Mayflower Basildon SF1121-Mar
Mayflower Basildon SF1122-Mar
Mayflower Basildon SF1123-Mar
Crownhill Plymouth SF11217-Mar
Crownhill Plymouth SF11218-Mar
Crownhill Plymouth SF11219-Mar
Crownhill Plymouth SF11220-Mar
Crownhill Plymouth SF11221-Mar
Crownhill Plymouth SF11222-Mar
Crownhill Plymouth SF11223-Mar
1 ACCEPTED SOLUTION

Closing this query as not response received for 2nd query. Appreciate my 1st query resolved.

View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

@Krishna_Newuser You can use GENERATE or GENERATEALL like:

New Table = GENERATEALL('Table 2', 'Table 1')


Follow on LinkedIn
@ 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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Thank you this helps. 

I need to copy the % from another table to current table(Newly created one), can you help me to it.

 

I have used this DAX but didn't helped.

Store Name-SH =
VAR _Domain =
CALCULATE(
FIRSTNONBLANK('04_StoreConsoDaily'[NewAdoption],1),
FILTER(ALL('04_StoreConsoDaily'),'04_StoreConsoDaily'[TxnDt]='CHeck'[TxnDt])
)
RETURN
IF(_Domain = BLANK(),0,_Domain)


 Table 1:

StoreNameStore NumTxnDtPercentage
Mayflower Basildon SF1117-Mar10%
Mayflower Basildon SF1118-Mar10%
Mayflower Basildon SF1119-Mar10%
Mayflower Basildon SF1120-Mar10%
Mayflower Basildon SF1121-Mar10%
Mayflower Basildon SF1122-Mar10%
Mayflower Basildon SF1123-Mar10%
Crownhill Plymouth SF11217-Mar20%
Crownhill Plymouth SF11218-Mar20%
Crownhill Plymouth SF11219-Mar20%
Crownhill Plymouth SF11220-Mar20%
Crownhill Plymouth SF11221-Mar30%
Leigh SF11317-Mar20%
Leigh SF11318-Mar20%
Leigh SF11319-Mar30%
Leigh SF11320-Mar40%

 

 

Table 2: 

StoreNameStore NumTxnDt
Mayflower Basildon SF1117-Mar
Mayflower Basildon SF1118-Mar
Mayflower Basildon SF1119-Mar
Mayflower Basildon SF1120-Mar
Mayflower Basildon SF1121-Mar
Mayflower Basildon SF1122-Mar
Mayflower Basildon SF1123-Mar
Crownhill Plymouth SF11217-Mar
Crownhill Plymouth SF11218-Mar
Crownhill Plymouth SF11219-Mar
Crownhill Plymouth SF11220-Mar
Crownhill Plymouth SF11221-Mar
Crownhill Plymouth SF11222-Mar
Crownhill Plymouth SF11223-Mar

 

Expected Result:

 

StoreNameStore NumTxnDtPercentage
Mayflower Basildon SF1117-Mar10%
Mayflower Basildon SF1118-Mar10%
Mayflower Basildon SF1119-Mar10%
Mayflower Basildon SF1120-Mar10%
Mayflower Basildon SF1121-Mar10%
Mayflower Basildon SF1122-Mar0%
Mayflower Basildon SF1123-Mar0%
Crownhill Plymouth SF11217-Mar20%
Crownhill Plymouth SF11218-Mar20%
Crownhill Plymouth SF11219-Mar20%
Crownhill Plymouth SF11220-Mar20%
Crownhill Plymouth SF11221-Mar0%
Crownhill Plymouth SF11222-Mar0%
Crownhill Plymouth SF11223-Mar0%

Closing this query as not response received for 2nd query. Appreciate my 1st query resolved.

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

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