Forum Discussion
Google5ive
4 years agoFrequent Visitor
Help Correcting a Converted Formula
Help!!! I need some assistance and it might be advance I'm trying to convert a statement that was written in somewhat a SQL format to DAX. Not sure if this is the correct location to post this. ...
jdbuchanan71
4 years agoSuper User
I would split the sub CALCULATATES into their own measures, the write the Fee measure to add the sub measures together.
Also, in the first part of the query it looks like three of the fields you are adding together you are taking back out right afterwards.
Can you just leave those 3 out of the first sum?
For the last 6 steps, the ones that multipl a count by 6.2, looking at the sql I think you can just do that this way.
6.2 measure =
CALCULATE(
COUNTROWS(Query1),
KEEPFILTERS(Query1[DT_DESC] IN {"DEED","EASMT","SEE INSTRUMENT"}),
(Query1[ADDTL_INST] > 0 || Query1[ADDTL_REF] > 0 || Query1[EXCISE_TAX] > 0 || Query1[RECORDING_FEES] > 0 || Query1[NON_STANDARD_FEES] > 0 || Query1[UCC_FEES] > 0)
) * 6.2