The "Rlzd Cap Gain" measure does not appear to calculate the gain/loss on a "TransferOutAsSale" transaction. The "Rlzd Cap Gain w/o Sell Fee" measure seems to do this calculation. Is there some reason why Rlzd Cap Gain does not do the calculation for this transaction type? I don't know DAX, but it looks like the only difference in the DAX coding seems to be that the "w/o Sell Fee" measure includes "+ [Fee]" in the calculation.
Thanks
Comments
I did the test on my heavily modified model based on PS v3.0. Tomorrow, will run your original model using my data sets and let you know if there is any difference from my notes above.
The "Rlzd Cap Gain" measure is blank, although the "Rlzd Cap Gain w/o Sell Fee" measure appeared to calculate correctly.
After changing the "Rlzd Cap Gain" measure as suggested above, the portion of table with the "TransferOutAsSale" transaction now looks like this:
Could you please try updated formula:
Thanks for your help.
I am not that familiar with DAX, but am curious as to why this change impacted whether the field totals or not. Both are numerical fields.