Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I have a table like below with prices of my products.
Date | Product | Price |
13.05.2021 | A | 5 |
13.05.2021 | B | 4 |
14.05.2021 | A | 8 |
14.05.2021 | B | 5 |
15.05.2021 | A | 6 |
15.05.2021 | B | 9 |
Now, I want to calculate the daily % difference between these prices for each product.
My desired result table should look like something like the below.
Thanks in advance for any help !
Hi, @pawelj795
Please check the below picture and the sample pbix file's link down below.
I suggest having a dim-date table like below.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
@Jihwan_Kim
Thanks for weighing in.
You forgot to add -1 in your measure.
The difference for product A is 60%, not 160%.
Where add this -1 in your measure?
Hi, @pawelj795
Thank you for your feedback.
Please check the below.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
@Jihwan_Kim
I need to modify your measure slightly.
I want to show only products, which price changed yesterday (or the current week).
This could be a simple table.
Product | % Difference change (yesterday) | Price before | Price after |
A | 80% | 10 | 18 |
B | 70% | 10 | 17 |
C | 60% | 10 | 16 |
D | 50% | 10 | 15 |
Hi, @pawelj795
Is the above input or output?
Seeing above, A / B / C / D all products have changes in the price.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
@Jihwan_Kim
It is the output.
This table must show only products, which prices changed yesterday. (it is another table to the one you help me created before)
Thanks, it's working!
Now, I want to add another measure, which shows only products, which prices changed yesterday, a current week, etc. How to do that?
I cannot understand your question.
Share your idea ( or drawing of the table) about how your desired outcome looks like.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
75 | |
63 | |
51 | |
48 |
User | Count |
---|---|
204 | |
86 | |
64 | |
59 | |
56 |