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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
jppuam
Helper V
Helper V

Differing values

Hello,

i want to differing values that 1 have in a period, for the next 12 months ahead.

for example:

Insurance codeBegging dateend datavalue (costs)
person A31/12/202431/12/2024120
person B30/11/202430/11/2024180

 

What im trying to do is : i want to create 12 lines for each person, 1 for each month (Jan/25, Feb/25, .....until Dec25, with 1/12 of the value that i've, in this case, 120/12 =10e for each month

The same for person B, that should have 15e for each month.

How can i do this using DAX ?

 

thanks,

JR

 

 

1 ACCEPTED SOLUTION
ahmedoye
Responsive Resident
Responsive Resident

You can try in Power Query with the following steps:

 

  1. Add a new Column in PowerQuery using this formular pattern: List.Numbers(0, ([Data value]/12)+1)

    Step 1.png

  2. Expand this new column using the "Expand to new rows" option. Change the data type here to Whole Number
  3. You can create a new Date End Column using this formula pattern: Date.AddMonths([Dateend], [NewCol])

    Step 2.png
  4. If this works for you, kindly mark as Answer to make it easier for anyone with similar issues to find a solution

View solution in original post

3 REPLIES 3
ahmedoye
Responsive Resident
Responsive Resident

You can try in Power Query with the following steps:

 

  1. Add a new Column in PowerQuery using this formular pattern: List.Numbers(0, ([Data value]/12)+1)

    Step 1.png

  2. Expand this new column using the "Expand to new rows" option. Change the data type here to Whole Number
  3. You can create a new Date End Column using this formula pattern: Date.AddMonths([Dateend], [NewCol])

    Step 2.png
  4. If this works for you, kindly mark as Answer to make it easier for anyone with similar issues to find a solution
ahmedoye
Responsive Resident
Responsive Resident

Must this be a DAX solution or you can work with PowerQuery. Since, it has to do with extra data, PowerQuery might provide a more viable solution.

i can create in power query the subset data with this data. how can i convert 1 line in 12 lines, 1 per each month in power query ?

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.