The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi @SG12 ,
Given the example that you sent me in PM:
I think the following measure could solve your problem:
Revenue = (SUM(Table[Unit price]) - SUM(Table[Cost price])) * quantity
Hi @SG12 ,
Given the example that you sent me in PM:
I think the following measure could solve your problem:
Revenue = (SUM(Table[Unit price]) - SUM(Table[Cost price])) * quantity
Hi @SG12,
I think we do not understand the problem.
Where do you have to multiply numbers with letters?
You have to distinguish between DAX and Power Query, you can't use both at the same time.
A simple DAX measure could look like this.
revenue = SUM('Table'[net sale price]) - SUM('Table'[cost price])
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
Hey @SG12 ,
where do you have to multiply numbers with letters? I don't understand that step.
Thank you and best regards
Denis
I take it you have a separate table that holds the transactions (with the quantities)?
Are you trying to multiple the quantities in a transaction table by the unit prices in the debtors table?
Thats what i'm trying to do but i don't have a "quantity" table for the debtors, all the tables you see above is what i have. Is it still possible or do i need to have quantity table to calculate the revenue per debtor.
to calculate Revenue you will need more data yes.
Why do you need to add a quantity column. Just simply add the Unit Price column.
Hi,
i haven't added it. it was just a example. Can you share your way of solving this?
User | Count |
---|---|
25 | |
10 | |
8 | |
7 | |
6 |
User | Count |
---|---|
32 | |
12 | |
10 | |
10 | |
9 |