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.
Hi there,
Could you please help me out with the following?
Imagine: you have a dataset with only YTD-data. Ths facttable has only 2 columns: date & Quantity YTD. In order to caculate the amount 'between' the months, you make the following measures:
Solved! Go to Solution.
Hi there,
No, this does not meet the requirements if you roll it up to year.
Anyhow, this is how fixed the issue myself:
Hi @JohanData ,
Sorry for that we have a little confused about your issue.
The Quantity YTD PM shows the 300 in 2019-01, is it the value in 2018-12?
You Quantity logic is Quantity = [Quantity YTD] - [Quantity YTD PM], what is the 0 logic in 2019-01? Do you want to show the blank in Quantity YTD PM, then the Quantity is 0?
BTW, your file is not existed. Could you upload again? Please don't contain any Confidential Information or Real data in your reply.
Best regards,
Community Support Team _ zhenbw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi there, I adjusted the link. Please check again 🙂
The Quantity YTD PM shows the 300 in 2019-01, is it the value in 2018-12? --> Yes, it's the value of the previous month.
You Quantity logic is Quantity = [Quantity YTD] - [Quantity YTD PM], what is the 0 logic in 2019-01? Do you want to show the blank in Quantity YTD PM, then the Quantity is 0? --> it should be 0 because the year starts here.
Thanks for asking the right questions and helping me out.
Hi there,
Your solution: https://community.powerbi.com/t5/Quick-Measures-Gallery/Periodic-Revenue-Reverse-YTD/m-p/373185#M111
does not work if you plot your solution in a matrix-table.
Hi @JohanData ,
Please allow us to confirm once again whether our understanding is correct.
When we select the 2019, in 2019-01, the Quantity YTD will show 30, Quantity YTD Previous Month will show 300, and the Quantity will show 0.
If it is your requirement, we can add an IF function in your Quantity measure.
Quantity =
IF(
MAX(DIM_Calender[Monthnumber])=1,0,
[Quantity YTD] - [Quantity YTD PM])
If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared?
Best regards,
Community Support Team _ zhenbw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
BTW, pbix as attached.
Hi there,
No, this does not meet the requirements if you roll it up to year.
Anyhow, this is how fixed the issue myself:
@JohanData See if these help:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Periodic-Revenue-Reverse-YTD/m-p/373185#M111
Also, you may find this helpful - https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000
Also, see if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TIT...
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
111 | |
92 | |
84 | |
66 |