Forum Discussion
conditional multiply
Hi all,
I have a table which looks like the following
| UniqueID | Sub | Total | OriginalDis | NewDis | NewRate |
| 1 | 1a | 500 | 10% | 20% | Total x NewDis per Unique ID |
| 1 | 1b | 50% | 40% | ||
| 1 | 1c | 40% | 40% | ||
| 2 | 2a | 100 | 100% | 100% |
How can I calculate the NewRate column using dax?
Thanks in advance
shei7141 here is the formula, add new column
New Col = CALCULATE ( MAX ( 'Table'[Total] ), ALLEXCEPT ( 'Table', 'Table'[UniqueID] ) ) * 'Table'[NewDis]I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
22 Replies
- amitchandakSuper User
shei7141 , what is expected output. Are these all column.
One solution can be a new column - but I doubt you need that
new column = [Total]*[NewDis]
- AnonymousNot applicable
- shei7141Helper III
Thanks J
sorry mate,
it does not recoganises any columns and I was expecting the followings results
- AnonymousNot applicable
HI shei7141
Form the limited information you have provided.
Here is what I would do.
NewRate = CALCULATE(SUM([TOTAL]*[NEWDIS]), ALLEXCEPT(TABLE,TABLE[UNIQUEID]))and use this two columns in a matrix chart.