Hi guys,
Wondering how I can Divide with a filter - below is a dateset example.
I'd like to divide the sum of B by the sum of C.
Expected result should be 37.5% - what is the best / most efficient approach with DAX?
Thanks in advance!
Solved! Go to Solution.
@peterso ,
Try like
divide(calculate(sum(Table[value]),Table[Category]="B"),calculate(sum(Table[value]),Table[Category]="C"))
or
divide(calculate(sum(Table[value]),filter(Table,Table[Category]="B")),calculate(sum(Table[value]),filter(Table,Table[Category]="C")))
@peterso ,
Try like
divide(calculate(sum(Table[value]),Table[Category]="B"),calculate(sum(Table[value]),Table[Category]="C"))
or
divide(calculate(sum(Table[value]),filter(Table,Table[Category]="B")),calculate(sum(Table[value]),filter(Table,Table[Category]="C")))
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!
User | Count |
---|---|
100 | |
38 | |
35 | |
30 | |
17 |
User | Count |
---|---|
110 | |
51 | |
47 | |
32 | |
18 |