Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello,
For each batch / test (from Test_Attributes Fact Table) I would like to also show the cost /kg ( from Procurement table). The batch numbers between the two tables are the same.
However, the latest test results are sometimes months after the product was purchased, therefore as the date relationships are based on the quite recent test date ( Test Attributes Fact Table) and the historic procurement (Procurement table) the slicer filters out the cost.
For example, the cost/kg shows up for batch 769-744-21 with no slicer, but disappers when changing the slicer after the procurement date, but includes the last test day.
I tried to use ALL to take the filter context off the date, but its still not returning a cost, any reason why/how to pull the cost through regardless of the date slicer?
Also, is it possible to pull through cost/kg based off the voucher number? Some batches have the same voucher number, but no cost associated with the batch, I would like to pull through the cost/kg for that voucher and apply it against all batches with the same voucher number, is this possible? E.g in this example, all batches have voucher number PIV001, so I want to pull through the same cost for these guys, not just the two batches?
Thanks for any help with A or B! PBIX file link Results_Test.pbix
Solved! Go to Solution.
Hi @watje255_ju
Placing a variable inside CALCULATE won't work as variables are calculated only once. Just wrap the inner CALCULATE with the outer CALCULATE without using the variable COST
Hi @watje255_ju
Placing a variable inside CALCULATE won't work as variables are calculated only once. Just wrap the inner CALCULATE with the outer CALCULATE without using the variable COST
Thanks!!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
16 | |
13 | |
12 | |
11 | |
11 |
User | Count |
---|---|
19 | |
14 | |
14 | |
11 | |
9 |