Hello,
Does anyone know of a DAX query which will calculate the conversion rate from MQL to SAL.
The below is an example of what I am trying to achieve
Thanks,
Harrison
Solved! Go to Solution.
Hi @HarryB ,
Please try:
First, create an index column:
Output:
Then apply the measure to a table visual:
Conversions =
var _a = SUM('Table'[Value])
var _b = CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),[Index]=MAX('Table'[Index])+1))
return DIVIDE(_b,_a)
Show items with no data:
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @HarryB ,
Please try:
First, create an index column:
Output:
Then apply the measure to a table visual:
Conversions =
var _a = SUM('Table'[Value])
var _b = CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),[Index]=MAX('Table'[Index])+1))
return DIVIDE(_b,_a)
Show items with no data:
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Jianbo Li,
Thank you!
Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.
Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!
User | Count |
---|---|
204 | |
52 | |
43 | |
39 | |
39 |
User | Count |
---|---|
266 | |
210 | |
73 | |
71 | |
65 |