Forum Discussion
Add difference between column and measure at value
Greetings all. I've got a rather difficult challenge. First off, here's what I'm working with:
The first 2 columns come from a static source and are a quantity of a specific item, and how frequently customers purchase that quantity (ex: Customers bought that item in a quantity of 7 nine times). The third column comes from a measure with a bunch of math behind it that's not particularly important. From there, I created a measure that, for quantity 1-19, it multiplies the frequency * adjustment (where the adjustment is always between 0 and 1). The measure I wrote is:
7 Replies
- v-jiascu-msftMicrosoft Employee
Hi JonV,
You can try the formula below. Please refer to dax/summarize-function-dax.
measure = SUMX ( SUMMARIZE ( sample, [Quantity], [Frequency], [Adjustment], "AF", [Adjusted Frequency] ), [AF] )
Best Regards,
- JonVHelper II
This solution will not work. As noted in my OP, it needs to be able to be dropped into the IF function as the 3rd term to complete the blank cell. This function references that entire column which creates a circular dependency as it's trying to fill a cell in the column it's trying to calculate.
I should also note that the "Adjustment" column came from a measure which also complicates what DAX functions can reference it.
- v-jiascu-msftMicrosoft Employee
Hi JonV,
Can you share the file? A dummy one is enough. Please mask the sensitive parts.
Best Regards,