Forum Discussion

NaviKher's avatar
NaviKher
New Member
3 years ago

Matrix

Hi Guys,

 

I have below data

YYYYMMPYYYYMMGroup_NameGroup_Numberpaid
202007202007ABC1248
202007202008ABC1823
202007202009ABC1365
202007202010ABC1319
202007202011ABC1594
202007202012ABC1826
202008202008ABC1333
202008202009ABC1907
202008202010ABC1428
202008202011ABC1500
202008202012ABC1203
202009202009ABC1255
202009202010ABC1692
202009202011ABC1404
202009202012ABC1993
202010202010ABC1906
202010202011ABC1230
202010202012ABC1935

 

I have created matrix with the help of DAX  % paid running total in PYYYYMM 

Below are the result 

Now I looking for below result 

 

1st Month = 7.81,14.04,10.88 etc. (First month for PYYYYMM and YYYYMM)

2nd Month = 33.73,52.30,40.40 etc. (Second month for PYYYYMM and first month for YYYYMM,third month for PYYYYMM and second month for YYYYMM etc.)

3rd Month = 45.23,70.35,57.64  (Third month for PYYYYMM and first month for YYYYMM,Forth month for PYYYYMM and second month for YYYYMM etc.)

 

Aspected result in Power Bi

1st Month7.81%14.04%10.88%43.75%
2nd Month33.73%52.30%40.40%54.85%
3rd Month45.23%70.35%57.64% 
4th Month55.28%91.44%  
5th Month73.98%   
     

How do i get above data in Power bi

2 Replies

    • NaviKher's avatar
      NaviKher
      New Member
      Hi Dhairya,
      Here is the measure:-
       
      paid running total in PYYYYMM =
      CALCULATE(
          SUM('Sheet1'[paid]),
          FILTER(
              ALLSELECTED('Sheet1'[PYYYYMM]),
              ISONORAFTER('Sheet1'[PYYYYMM], MAX('Sheet1'[PYYYYMM]), DESC)
          )
      )