Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello Experts :),
My dataset is purchase history for parts coming into the warehouse. I need to be able to identify a "baseline" cost price at a supplier+part number combination and compare that value to the cost price from a different timeframe, to see where we may be seeing increased or decreased costs. The "baseline" cost price would be the last cost price from the baseline timeframe. There is a field in the dataset called "rank_newest" that ranks the transactions within the supplier+part number combination newest-to-oldest.
What I wish to accomplish is to give the users one date slider to identify the "baseline" timeframe and a separate date slider to identify the "review" timeframe. I am so very close with this one!
I start with two date tables. The active relationship is for the "review" timeframe and the inactive relationship is for the "baseline" timeframe.
The user can adjust the date sliders to their desired baseline and review timeframes.
Here is a quick rundown of the measures. I put them in numerical order.
The first measure will identify the MIN rank_newest from the baseline timeframe; this will be the last order placed in the baseline timeframe.
This last image would be the desired outcome. I would like to be able to do this across all of the Supplier+Part Number combinations simultaneously to arrive at a total dollar value of cost savings or cost increases.
I have tried using SUMMARIZE to do this without any luck!
Here is a link to the pbix with sample data:
https://www.dropbox.com/s/k5px5rvb5m027gl/Example%20Power%20BI%20File.pbix?dl=0
Any help is greatly appreciated!!
-Kyle
Solved! Go to Solution.
I had a "duh" moment! I've updated the measure '4 diff extended' to use SUMX. This is giving me the correct result at the part level and at the total level. I also had to add an IF statement so it wouldn't calculate when there was no cost available from the baseline timeframe.
Updated measure:
I had a "duh" moment! I've updated the measure '4 diff extended' to use SUMX. This is giving me the correct result at the part level and at the total level. I also had to add an IF statement so it wouldn't calculate when there was no cost available from the baseline timeframe.
Updated measure:
User | Count |
---|---|
15 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
31 | |
18 | |
15 | |
7 | |
5 |