March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
20 | |
19 | |
16 | |
8 | |
5 |
User | Count |
---|---|
36 | |
28 | |
16 | |
15 | |
12 |