Forum Discussion
HOW to simulate a DIVIDEX
That's not the inverse of PRODUCTX. PRODUCTX multiplies across row, not across columns.
Please describe your business scenario, and maybe provide some sample data.
I have to divide across rows (sales invoice line), the data in the column of the total amout and the data in quantity column.
- lbendlin2 years agoSuper User
You didn't share sample data so this is only a guess
SUMX(table1,DIVIDE([column1],[column2])
- Anonymous2 years agoNot applicable
I thought the DIVIDE function divided not line by line (like it was a DIVIDEX which I know doesn't exist), and I didn't understand why you also used the SUMX.
What I need is to calculate an amount-quantity ratio for each invoice line such that I have a series of unit prices. At this point, for each data filter the customer inserts, it will use the unit value calculated above, relating to the previous period of the one selected, to calculate an average (I don't explain more because i think it's not relevant for the question I asked).
p.s. Sorry if I didn't insert example values, but on one hand they are customer's data, and on the other they are just two columns of numbers, so I thought you just didn't need it.
- lbendlin2 years agoSuper User
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information or anything not related to the issue or question.
If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523