Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi,
I am trying to find a way to gross up a measure based on the year. For example, let's assume $100 of revenue in 2019, $150 in 2020, and $70 in 2021 (YTD through May). On the visual, I want to gross this up based on time elapsed to date, such that 2021 would equal $70 / (5/12) = $168. Is there a way to write an IF statement as a variable that says, if year = 2021, gross-up, otherwise multiply by 1?
Thanks in advance.
Desired Output
Year | Revenue |
2021 | 168 |
2020 | 150 |
2019 | 100 |
Solved! Go to Solution.
Hello @jl20
Gross Up Valuation Revenue Per FTE
The updated file is also attached for your reference.
https://drive.google.com/file/d/1qdWCfz4FYLN5rlUGwusIqpUi8bJk_OgA/view?usp=sharing
Hope this helps.
Regards
Kumail Raza
@jl20 as a best practice if someone provides a solution you have to confirm back whether it worked or not, just a bit of etiquette.
Now in this file which measure you are referring to? You have to be very precise in your requirement, just cannot think the other person will do the guessing game on behalf of you.
Read this post to get your answer quickly.
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
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.
Sorry, parry2k. Will be sure to provide responses to each proposed solution going forward. In the file, the field that needs to be annualized is "Valuation Revenue per FTE by Fiscal Year" - specifically for FY21 as it's still ongoing.
@jl20 I already gave you the measure, did you try it?
Check my latest blog post Comparing Selected Client With Other Top N Clients | PeryTUS I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
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.
Unfortunately, I couldn't get it to won't work given the structure of the data (see sample file). Revenue in my initial example is a measure built on two underlying measures.
Hello @jl20
If you could provide sample .pbix file, that would help providing a quick solution to your requirement.
I hope this helps.
Regards
Kumail Raza
Here's a link to a sample file: https://drive.google.com/file/d/1c4AAhaKI23otzuajcX4xf9pVfQPjAt-x/view?usp=sharing
Thanks for taking a look
Hello @jl20
Gross Up Valuation Revenue Per FTE
The updated file is also attached for your reference.
https://drive.google.com/file/d/1qdWCfz4FYLN5rlUGwusIqpUi8bJk_OgA/view?usp=sharing
Hope this helps.
Regards
Kumail Raza
Kumail,
Awesome solution! This works perfectly. Thanks!
New Revenue Measure =
DIVIDE ( [Revenue],
IF ( MAX ( Table[Year] ) = YEAR( TODAY(), DIVIDE ( MONTH ( TODAY() ) - 1, 12 ), 1 )
)
Check my latest blog post Comparing Selected Client With Other Top N Clients | PeryTUS I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
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.
I actually simplified it in this example - revenue is a measure, so I somehow need to apply the adjustment to that rather than as a calc column.
@jl20 sure you can do this, assuming revenue is a column
New Revenue Column =
DIVIDE ( Table[Revenue],
IF ( Table[Year] = YEAR( TODAY(), DIVIDE ( MONTH ( TODAY() ) - 1, 12 ), 1 )
)
Tweak the code as you see fit.
Check my latest blog post Comparing Selected Client With Other Top N Clients | PeryTUS I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
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.
User | Count |
---|---|
102 | |
91 | |
87 | |
79 | |
71 |
User | Count |
---|---|
113 | |
105 | |
101 | |
75 | |
64 |