The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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 | |
12 | |
7 | |
6 | |
5 |
User | Count |
---|---|
28 | |
18 | |
13 | |
7 | |
5 |