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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
prashantg364
Helper II
Helper II

DAX query

I have a product code table as shown below

Product code
alpha
beta
gama

x

Now I want to add a date column against each product for a specific duration, as example shown below

Product codeDate
alpha01-Mar-23
alpha02-Mar-23
alpha03-Mar-23
alpha04-Mar-23
alpha05-Mar-23
beta01-Mar-23
beta02-Mar-23
beta03-Mar-23
beta04-Mar-23
beta05-Mar-23
gama01-Mar-23
gama02-Mar-23
gama03-Mar-23
gama04-Mar-23
gama05-Mar-23


Pls help me on creating a column.

4 REPLIES 4
wdx223_Daniel
Super User
Super User

NewTable=GENERATE(VALUES(Table[Product Code]),CALENDAR(DATE(2023,3,1),DATE(2023,3,5)))

Resolved by creating a custom column in query editor. Thanks

Thanks, it works.

aditya0125
Resolver I
Resolver I

Create date column manually in Query editor.
Get data-select Blank Query-type= {Number.From(#date(2023,1,1))..Number.From(#date(2023,3,15))}
and covert the ABC123 type to date.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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