Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi
I am trying to calculate different fuel quantity losses using the DAX calculate. Problem is that it is also calculating the lines that are not relevant for the specific fuel type.
We have IFO, MGO, LSGO and ULSFO/VLSFO
Ex. the IFO loss calculation is:
Another issue is how i get the IFO loss % only to divide if the denominator or nominator has a number otherwise come blank.
I hope you can help.
for Loss %, you can simply use ISNUMBER() DAX function to check whether a number is valid or not. If condition satisfies, you can use DIVIDE() function to calculate final loss %
Hi Pravin,
So you mean:
You have added to many parenthesis.
try this
IFO Loss MT = calculate(SUM('bunkertrust_com_db vBunkerOperationsFirstView'[bunker_ifo_received_vessel_figure]), FILTER('bunkertrust_com_db vBunkerOperationsFirstView', 'bunkertrust_com_db vBunkerOperationsFirstView'[bunker_ifo_received_vessel_figure]="IFO")) - CALCULATE(SUM('bunkertrust_com_db vBunkerOperationsFirstView'[bunker_ifo_departure_bdn]))
Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar
If I resolve your problem Mark it as a solution and give kudos.
share some sample dataset and expected output so that it will be easy for me to answer your quetion.
Thanks,
Pravin
@Anonymous
Can you use this ?
Column A to H are the calculations : https://docs.google.com/spreadsheets/d/1igSUU-_7fRzllGukzsVVJ4kOg8elB3b_q0Y-Z54hH4Q/edit?usp=sharing
Which format do you prefer?
Hi Pravin,
This is coming with circular dependency in stead.
The figures are coming in separated columns, so I suppose it is a matter of not calculating if blank?
User | Count |
---|---|
98 | |
90 | |
83 | |
70 | |
67 |
User | Count |
---|---|
113 | |
104 | |
101 | |
73 | |
65 |