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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
umekuro
Helper II
Helper II

Equalized value including anomalous conditions from the starting month

Hi,

 

I am looking for a way to create a table like the one below.
I want to create the table on the right from the original data on the left.
The conditions are
-If EndMonth is blank, divide Value evenly by 6 months including the start month.
-If EndMonth exists, the remaining 6 months of equally divided Value is lumped into EndMonth.

 

I would like to know how to achieve this in both by PowerQuery and by Dax.
I would be grateful if you could tell me how to do either one of them.

 

Thanks in advance.

umekuro_0-1647169718239.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@umekuro , Create date based on months. Add 6 months to start date if end date is blank and create a new column

 

End Date new = if(isblank([End date]), Eomonth([Start Date],6), {end date])

 

Refer to the file attach of my old work on similar topic

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@umekuro , Create date based on months. Add 6 months to start date if end date is blank and create a new column

 

End Date new = if(isblank([End date]), Eomonth([Start Date],6), {end date])

 

Refer to the file attach of my old work on similar topic

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak 

 

Thank you.

It's very helpful for me.
If the EndMonth is less than 6 months, the
How do I lump the remaining VALUE in the final month?

 

BR

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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