Forum Discussion
How can I compare values from 2 different sheets in Power BI?
- 6 years ago
Try this approach. Make a table visual with the Part Number from Table1 and add this measure
Delta =
var currentpart = selectedvalue(Table1[PartNumber])
var table1open = calculate(Sum(Table1[Qty]), Table1[Status]="Open")
var table2open = calculate(sum(Table2[Qty]), Table2[Status]="Open", Table2[PartNum]=currentpart)
return table1open-table2open
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
Try this approach. Make a table visual with the Part Number from Table1 and add this measure
Delta =
var currentpart = selectedvalue(Table1[PartNumber])
var table1open = calculate(Sum(Table1[Qty]), Table1[Status]="Open")
var table2open = calculate(sum(Table2[Qty]), Table2[Status]="Open", Table2[PartNum]=currentpart)
return table1open-table2open
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
Thank you, this did the job, I was breaking my head, thank you again for the advice.
Best regards!
Carlos V