Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/powerbi/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PowerBI_计算两个时间点之间的ID重叠_Powerbi_Transition_Overlap_Measure - Fatal编程技术网

PowerBI_计算两个时间点之间的ID重叠

PowerBI_计算两个时间点之间的ID重叠,powerbi,transition,overlap,measure,Powerbi,Transition,Overlap,Measure,我的表格如下: calendar.year ID age 2013 a 29 2013 b 29 2013 c 29 2013 d 29 2013 e 30 2013 f 30 2013 g 30 2013 h 31 2013 i 31 2013

我的表格如下:

calendar.year   ID  age
2013            a   29
2013            b   29
2013            c   29
2013            d   29
2013            e   30
2013            f   30
2013            g   30
2013            h   31
2013            i   31
2013            j   31
2013            k   31
2014            a   30
2014            b   30
2014            c   30
2014            e   31
2014            f   31
2014            g   31
2014            h   32
2014            i   32
2014            j   32
2014            m   29
2014            n   29
2014            q   29
2014            o   31
2014            p   30
2014            x   30
2014            y   31
2014            z   30
2015            m   30
2015            n   30
2015            a   31
2015            b   31
2015            c   31
2015            e   32
2015            f   32
2015            g   32
我需要在PowerBI中实现以下功能:计算每个年龄组的平均转换率。例如:

2013年,29岁时有四个不同的ID(a、b、c、d),2014年出现了三个(a、b、c),因此转换率为75%; 2014年,29岁时有三个不同的ID(m,n,q),2015年出现两个(m,n),因此转换率为66.7%; 因此,29岁的平均过渡率为(75%+66.7%)/2=70.9%

请问我应如何制订一项措施,以达到所有年龄组的平均过渡率? 多谢各位