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 everyone,
I have a requirement to create cost simulations. The user will need to select one reference simulation and another simulations (2max in this exemple), and then the tables will be displayed with the simulation.
The Need
The first table will show the information of the reference, including the cost per person, the second table will display the cost of simulation No. 1 and the last Table, datas of the 2nd simulation along with the cost per person.
What i need to do :
I need to add on the Simulation tables the difference from the reference and the actual simulation (Poid & Cost)
Exemple :
Here the Simple Data Model :
Thank you in advance for your help.
Hi @MrBrownn ,
Can you please provide the sample data in each table? I can't test with just the relational view without data, and I can't create my own sample data to test with.
Also I see in your screenshot that Nom and Taille are combined to identify the unique calculation object, which might be a breaking point. You could try combining all your tables together via these two columns (e.g. using Power Query or a calculated table) and then just subtract the columns to accomplish your desired result.
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @MrBrownn ,
Sorry for being late! But can you explain why these two lines correspond to a subtraction?
These two rows do not have the same Nom, so Power BI could not find a reason to match these two rows together to make the calculation.
Best Regards,
Dino Tao
Oups, sorry my bad,
The "AAA" can't be compared to "A" only the same lignes can be compared...