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
JSchmetterer
Frequent Visitor

How to "annualize" my data

Hello,

 

I have something set up right now that tells me the total stocking order over a time period:

 

 

deleteeee.PNG

1. Divide this $6.23K over the population of the counties that are covered

2. Make it so the slider "annualizes" the data. In other words, because I currently have one month selected, he wants this number to be multplied by 12 so that it estimates what the sales per population would be over a year. Or if I had say, 77 days seleccted, it would need to automatically know to multply by 4.74 (because 365/77=4.74). 

 

I'm pretty sure I can figure out how to do #1 on my own. But #2 looks daunting to me. How can I make it so changing the slider automatically does the math for me?

 

Thanks!

3 REPLIES 3
Anonymous
Not applicable

Hi,

I someone is still looking for the solution then you can use the following measure to get the count of days selected from the date slicer and then use this count to calculate the annualize value.

 

SelectedDateCount =
IF (
ISFILTERED ( Dim_Date[DATE]),CALCULATE(COUNT(Dim_Date[DATE]),ALLSELECTED(Dim_Date[DATE])),0)

 

parry2k
Super User
Super User

@JSchmetterer Can you share sample data for the solution?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Hi @parry2k

 

I can't upload real data because it needs to remain private but here is sample data I just made up:

 

Order #Date of OrderCustomer NumberAgencyStateCountyOrder Total ($)
225343019AURORAHEAL001PALMERFNEOmaha County10000
227743025BLUECROSS001PALMERFNEOmaha County7500
267943026CHILDRENSHOS001ROBBINSLCODenver County6500
332343037KAISERPERMA001ROBBINSLCODenver County6000
383343042ALLIANCEHEAL001BAKERJILLake County7000
386843050ALLIANCEHEAL001BAKERJILLake County5000
447243062CHILDRENSHOS001ROBBINSLCODenver County7500
452143063KAISERPERMA001ROBBINSLCODenver County4000
477743065ALLIANCEHEAL001BAKERJILLake County2000
488743066AURORAHEAL001PALMERFNEOmaha County3000

 

So let's say I set my slider to be from 11/1/17 to 11/30/17. That ends up being a total of $28,500. But I want to extrapolate that data over a year to get a good idea of what sales might be like in a 12 month period...

 

So I would do 365.25/30=12.175, then multiply that number by $28,500 to get $346,987.50.

 

How would I set it up so that adjusting the slider automatically does the math for me? 

 

Thank you!

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.