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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
o59393
Post Prodigy
Post Prodigy

how to split a 12M savings by quarter with calculated columns

Hi all


How can I split a total savings amount per quarter using calculated columns ?


For example if I launched a project on 4/14/2019 with a 12M savings of $500,000 how can it be breakdown per Q?

 

What I did first of all, was on Power Query I added each of the Q's like this:

 

dsfdfdsdsf.JPG

 

As seen above I have added the quarters dinamically depending on the lauch date.

 

For the example mentioned in the beginning, the savings would have to broken like this:

ssadsasdsa.JPG

 

In green you see the days of savings per quarter, and on blue the savings per quarter. The total for the blue cells sums the $500,000.

 

I attach the excel with the expected result for easier interpretation and pbix.

 

https://1drv.ms/u/s!ApgeWwGTKtFdhxV1Osv1uVU4QBuD?e=hRbuc5

 

Any guidance is appreciated.

 

Regards.

1 ACCEPTED SOLUTION

Hi @Greg_Deckler 

 

I managed to solve it doing nested ifs.

 

fdgdfgdf.JPG

Here is the solution.

 

https://1drv.ms/x/s!ApgeWwGTKtFdhxNgiwQAk6J97b94?e=ZIDbUW

 

Regards!

View solution in original post

6 REPLIES 6
Greg_Deckler
Super User
Super User

@o59393 - Hmm, perhaps you need something like this?

https://community.powerbi.com/t5/Quick-Measures-Gallery/Periodic-Revenue-Reverse-YTD/m-p/373185#M111


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hi @Greg_Deckler 

 

I managed to solve it doing nested ifs.

 

fdgdfgdf.JPG

Here is the solution.

 

https://1drv.ms/x/s!ApgeWwGTKtFdhxNgiwQAk6J97b94?e=ZIDbUW

 

Regards!

Hi  @o59393 ,

 

Nice work and thanks for sharing ! Could you pls mark the reply as answered to close it?

 

Much appreciated.

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

Awesome, only thing I would say would be to consider SWITCH(TRUE()...) instead of nested IF's. Usually cleaner. Nice.

@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Thanks @Greg_Deckler 


Will do it for the calculated columns for sure.

 

Regards!

Hi @Greg_Deckler 

 

I reviewed your dax:

 

sdsfsfsdsdf.JPG

 

But still not sure what the periodic revenue does, and how I can apply it to my case where the savings have to be splitted in quarters in function of the launch date. 

 

Thanks!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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