To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi All,
I have a table as below. I need to write a dax like
Measure = Car(new)/(Bike(old)*Bicycle(new))
Product | Type | value |
Car | New | 25 |
Car | Old | 10 |
Bike | New | 20 |
Bike | Old | 15 |
Bicycle | New | 10 |
Bicycle | Old | 20 |
Thankyou
Solved! Go to Solution.
Hi, @Prabha45
tyr below measure
just adjust your table and column name
Measure =
var a= SUMX(FILTER('Table','Table'[product]="car"&&'Table'[Type]="new"),'Table'[value])
var b =SUMX(FILTER('Table','Table'[product]="bike"&&'Table'[Type]="old"),'Table'[value])
var c = SUMX(FILTER('Table','Table'[product]="bicycle"&&'Table'[Type]="new"),'Table'[value])
return
DIVIDE(a,b*c)
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. and don't forget to give kudos.
Hi, @Prabha45
tyr below measure
just adjust your table and column name
Measure =
var a= SUMX(FILTER('Table','Table'[product]="car"&&'Table'[Type]="new"),'Table'[value])
var b =SUMX(FILTER('Table','Table'[product]="bike"&&'Table'[Type]="old"),'Table'[value])
var c = SUMX(FILTER('Table','Table'[product]="bicycle"&&'Table'[Type]="new"),'Table'[value])
return
DIVIDE(a,b*c)
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. and don't forget to give kudos.
User | Count |
---|---|
14 | |
11 | |
6 | |
6 | |
5 |
User | Count |
---|---|
29 | |
17 | |
11 | |
7 | |
5 |