Forum Discussion
coolshib
Helper III
7 years agoDax Measure with related Table
Hello Everyone, I am looking for a dax measure function based on the following logic. I have three tables, Table No.1 Category Online Price Offline Price Laptop ...
- 7 years ago
Hi coolshib,
Please establish a relationship between 3 tables and try the following measure for
Total Sales =SUMX(Table3,IF(Table3[Mode]="Online",RELATED(Table1[Online Price]),RELATED(Table1[Offline Price]))*Table3[Qty])
Here is the snapshot of the output
You can download the Power Pivot file from here
Hope it helps
- 7 years ago
Ronald123
Resolver III
7 years agoHi Ashish_Mathur,
This one gives me also the correct grand total.
Total sales = SUMX(Table1;[Price per unit]*[Quantity sold])
I will understand wy to generate a virtual table with summarize.
Greets,
Ronald
Ashish_Mathur
Super User
7 years agoYes, you are right. We do not need to create a virtual Table. Thank you.