Forum Discussion
ephramz
4 years agoHelper II
Dax Function to compare two column from same table
How do I create a new measure table to compare and retrieve the higher value and divide this value with quantity.
The result column is what I want my "measure" to be able to do. The data are all in the same table.
Eg:
Time Time Actual Time (Higher value) Quantiy Result
50 40 50 2 25
30 20 30 3 10
ephramz , Create a new measure like
sumx(table, divide( if([Time1]>[Time2], [Time1], [Time2]),[Quantity]) )
1 Reply
- amitchandakSuper User
ephramz , Create a new measure like
sumx(table, divide( if([Time1]>[Time2], [Time1], [Time2]),[Quantity]) )